Skip to content

App crash when received notification for Android #2510

Closed
@Niccolohui

Description

@Niccolohui

Hi, the app crash in android when it got a notification from firebase. here is the log from Android studio. thank you!

I/flutter (12646): 360.0
I/dalvikvm(12646): Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.android.gms.common.wrappers.PackageManagerWrapper.isCallerInstantApp
W/dalvikvm(12646): VFY: unable to resolve virtual method 702: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
D/dalvikvm(12646): VFY: replacing opcode 0x6e at 0x002e
D/AndroidRuntime(12646): Shutting down VM
W/dalvikvm(12646): threadid=1: thread exiting with uncaught exception (group=0x41756d58)
E/AndroidRuntime(12646): FATAL EXCEPTION: main
E/AndroidRuntime(12646): Process: com.sbchk.app, PID: 12646
E/AndroidRuntime(12646): java.lang.RuntimeException: Unable to create service io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService: java.lang.RuntimeException: PluginRegistrantCallback is not set.
E/AndroidRuntime(12646): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2585)
E/AndroidRuntime(12646): at android.app.ActivityThread.access$1900(ActivityThread.java:141)
E/AndroidRuntime(12646): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1295)
E/AndroidRuntime(12646): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(12646): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(12646): at android.app.ActivityThread.main(ActivityThread.java:5072)
E/AndroidRuntime(12646): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(12646): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(12646): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime(12646): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
E/AndroidRuntime(12646): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(12646): Caused by: java.lang.RuntimeException: PluginRegistrantCallback is not set.
E/AndroidRuntime(12646): at io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService.startBackgroundIsolate(FlutterFirebaseMessagingService.java:157)
E/AndroidRuntime(12646): at io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService.onCreate(FlutterFirebaseMessagingService.java:77)
E/AndroidRuntime(12646): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2575)
E/AndroidRuntime(12646): ... 10 more
I/Process (12646): Sending signal. PID: 12646 SIG: 9
Lost connection to device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.closed-by-bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions