Skip to content

[Bug]: Getting crash when running release build #713

Closed
@dchandrani

Description

@dchandrani

What happened?

Implemented OneSignal version 5.0.0 in Flutter app, but when tried to run the app in release mode I got a FATAL EXCEPTION saying Unable to start receiver com.onesignal.notifications.receivers.UpgradeReceiver: java.lang.Exception: Service class e7.b could not be instantiated.

Steps to reproduce?

1. Install onesignal_flutter: ^5.0.0

2. Launch the Android app in release mode

3. Note the crash in debug console

What did you expect to happen?

I expected to receive call back of OneSignal.User.pushSubscription.addObserver to get user id.

OneSignal Flutter SDK version

5.0.0

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

E/AndroidRuntime(11216): FATAL EXCEPTION: main
E/AndroidRuntime(11216): Process: com.voliz, PID: 11216
E/AndroidRuntime(11216): java.lang.RuntimeException: Unable to start receiver com.onesignal.notifications.receivers.UpgradeReceiver: java.lang.Exception: Service class e7.b could not be instantiated
E/AndroidRuntime(11216):        at android.app.ActivityThread.handleReceiver(ActivityThread.java:4485)
E/AndroidRuntime(11216):        at android.app.ActivityThread.access$1900(ActivityThread.java:254)
E/AndroidRuntime(11216):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2195)
E/AndroidRuntime(11216):        at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(11216):        at android.os.Looper.loopOnce(Looper.java:233)
E/AndroidRuntime(11216):        at android.os.Looper.loop(Looper.java:344)
E/AndroidRuntime(11216):        at android.app.ActivityThread.main(ActivityThread.java:8212)
E/AndroidRuntime(11216):        at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(11216):        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
E/AndroidRuntime(11216):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
E/AndroidRuntime(11216): Caused by: java.lang.Exception: Service class e7.b could not be instantiated
E/AndroidRuntime(11216):        at u6.c.i(ServiceProvider.kt:59)
E/AndroidRuntime(11216):        at f8.a.l(OneSignalImp.kt:79)
E/AndroidRuntime(11216):        at o6.d.j(OneSignal.kt:13)
E/AndroidRuntime(11216):        at com.onesignal.notifications.receivers.UpgradeReceiver.onReceive(UpgradeReceiver.kt:18)
E/AndroidRuntime(11216):        at android.app.ActivityThread.handleReceiver(ActivityThread.java:4469)
E/AndroidRuntime(11216):        ... 9 more

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions