-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open Overlay from background when app is kill state #110
Comments
Same issue,
|
When app is going to sleep mode and after wake mode its crashing |
Same issue: E/AndroidRuntime(18128): FATAL EXCEPTION: main |
@abneradekz @chinmay4github1987 @Soheldeveloper Any new updates regarding this issue or if anyone solved it? |
@youssefm15 no for me |
Is there any update regarding this, I have the same Problem |
Hi @X-SLAYER , Do you have any plan on this to resolve. Thanks |
I want to open Overlay from background when app is in kill state. Specially when firebase ping comes in background. So is is possible in this library or not ?
When I am trying to do this, I face following error.
**E/flutter (30813): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Not allowed to start service Intent { flg=0x30000000 cmp=my.package.name/flutter.overlay.window.flutter_overlay_window.OverlayService (has extras) }: app is in background uid UidRecord{25fa346 u0a887 RCVR idle procs:1 seq(0,0,0)}, null, java.lang.IllegalStateException: Not allowed to start service Intent { flg=0x30000000 cmp=com.vivacom.mhealth/flutter.overlay.window.flutter_overlay_window.OverlayService (has extras) }: app is in background uid UidRecord{25fa346 u0a887 RCVR idle procs:1 seq(0,0,0)}
E/flutter (30813): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1536)
E/flutter (30813): at android.app.ContextImpl.startService(ContextImpl.java:1492)
E/flutter (30813): at android.content.ContextWrapper.startService(ContextWrapper.java:650)
E/flutter (30813): at flutter.overlay.window.flutter_overlay_window.FlutterOverlayWindowPlugin.onMethodCall(FlutterOverlayWi
E/flutter (30813): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/flutter (30813): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/flutter (30813): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-en
E/flutter (30813): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/flutter (30813): at android.os.Handler.handleCallback(Handler.java:790)
E/flutter (30813): at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (30813): at android.os.Looper.loop(Looper.java:164)
E/flutter (30813): at android.app.ActivityThread.main(ActivityThread.java:6626)
E/flutter (30813): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (30813): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/flutter (30813): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
E/flutter (30813): )
E/flutter (30813): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652)
E/flutter (30813): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310)
E/flutter (30813):
E/flutter (30813): #2 FlutterOverlayWindow.showOverlay (package:flutter_overlay_window/src/overlay_window.dart:54)
E/flutter (30813):
E/flutter (30813): #3 _showOverLay (package:caafiya/main_flavor/main_shaafi.dart:84)
E/flutter (30813):
E/flutter (30813):**
Following is my code for opening overlay in main.dart
The text was updated successfully, but these errors were encountered: