Git Product home page Git Product logo

Comments (4)

0xharkirat avatar 0xharkirat commented on June 19, 2024

full output:
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4664)
E/AndroidRuntime(10863): at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
E/AndroidRuntime(10863): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2264)
E/AndroidRuntime(10863): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(10863): at android.os.Looper.loopOnce(Looper.java:205)
E/AndroidRuntime(10863): at android.os.Looper.loop(Looper.java:294)
E/AndroidRuntime(10863): at android.app.ActivityThread.main(ActivityThread.java:8177)
E/AndroidRuntime(10863): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(10863): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E/AndroidRuntime(10863): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
E/AndroidRuntime(10863): Caused by: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{fbc3347 10863:com.example.think_lite/u0a198} targetSDK=34
E/AndroidRuntime(10863): at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:53)
E/AndroidRuntime(10863): at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:49)
E/AndroidRuntime(10863): at android.os.Parcel.readParcelableInternal(Parcel.java:4870)
E/AndroidRuntime(10863): at android.os.Parcel.readParcelable(Parcel.java:4852)
E/AndroidRuntime(10863): at android.os.Parcel.createExceptionOrNull(Parcel.java:3052)
E/AndroidRuntime(10863): at android.os.Parcel.createException(Parcel.java:3041)
E/AndroidRuntime(10863): at android.os.Parcel.readException(Parcel.java:3024)
E/AndroidRuntime(10863): at android.os.Parcel.readException(Parcel.java:2966)
E/AndroidRuntime(10863): at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6761)
E/AndroidRuntime(10863): at android.app.Service.startForeground(Service.java:775)
E/AndroidRuntime(10863): at flutter.overlay.window.flutter_overlay_window.OverlayService.onCreate(OverlayService.java:253)
E/AndroidRuntime(10863): at android.app.ActivityThread.handleCreateService(ActivityThread.java:4651)
E/AndroidRuntime(10863): ... 9 more

from flutter_overlay_window.

sarthakydv avatar sarthakydv commented on June 19, 2024

You need to specify the service type
https://developer.android.com/about/versions/14/changes/fgs-types-required

Also, change the target sdk to 34 in your fork

from flutter_overlay_window.

dcdj99 avatar dcdj99 commented on June 19, 2024

You need to specify the service type https://developer.android.com/about/versions/14/changes/fgs-types-required

Also, change the target sdk to 34 in your fork

What is the service type that you specify for the overlay?

from flutter_overlay_window.

sarthakydv avatar sarthakydv commented on June 19, 2024

specialUse

from flutter_overlay_window.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.