Comments (4)
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.
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.
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.
specialUse
from flutter_overlay_window.
Related Issues (20)
- Does it use Google Play services? HOT 1
- You can use the resize overlay and pass the enableDrag params HOT 2
- Could not run the example
- FlutterOverlayWindow.showOverlay(height: WindowSize.fullcover) wont work
- Values in resizeOverlay not coherent with values in showOverlay HOT 2
- Crached when close overlay in android 12 HOT 5
- Wrong size when switching between portrait and landscape mode.
- Can flutter_web be used in Windows?
- TextFormField not supported HOT 1
- Not able to add any other plugin into the overlay screen
- Not able to receive message from flutter_background_service HOT 1
- when call Function showOverlay() nothing action HOT 2
- add ios support HOT 5
- Add support for android API 34 HOT 1
- Height doesn't account for status bar
- Use of `FlutterEngineGroup` instead of simply using `FlutterEngine` HOT 1
- Overlay stops sending messages to UI when it's turned on after previously being closed after app termination
- Unable to create multiple overlay window. HOT 4
- Please add more flags to show when phone is looked HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_overlay_window.