When the app is killed / Not recently, the application crashes.
When the app is killed / Not recently, the application crashes.
I am trying to open the overlay whenever a notification is received. The background is not working. Can anyone help us?
E/AndroidRuntime(17843): Process: com.appName, PID: 17843 E/AndroidRuntime(17843): java.lang.RuntimeException: Unable to create service in.jvapps.system_alert_window.services.WindowServiceNew: java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.embedding.engine.dart.DartExecutor io.flutter.embedding.engine.FlutterEngine.getDartExecutor()' on a null object reference
E/AndroidRuntime(17843): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.embedding.engine.dart.DartExecutor io.flutter.embedding.engine.FlutterEngine.getDartExecutor()' on a null object reference
E/AndroidRuntime(17843): at in.jvapps.system_alert_window.services.WindowServiceNew.
I am also having this issue in 2.0.4. This causes a dialog "AppName keeps stopping".
This is a fatal crash. Please catch this exception so the dialog does not appear. In the following image, the getDartExecutor function is producing this issue.
How to reproduce:
-
adb root -
adb shell pkill -9 appName