Skip to content
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

[Bug]: PermissionsActivity #529

Open
1 task done
shefich opened this issue Aug 22, 2022 · 9 comments
Open
1 task done

[Bug]: PermissionsActivity #529

shefich opened this issue Aug 22, 2022 · 9 comments

Comments

@shefich
Copy link

shefich commented Aug 22, 2022

What happened?

I can see a crash in Crashlytics: PermissionsActivity.java line 109.

Steps to reproduce?

1. Install OneSignal 3.0.3
2. Run the app on Android 8, Nexus 5X (as I can see in Crashlytics).

What did you expect to happen?

I expected the app to successfully register callbacks.

Unity version

Unity 2020.3.38f1

OneSignal Unity SDK version

OneSignal 3.0.3

Platform

Android

Relevant log output

Fatal Exception: java.lang.RuntimeException
Unable to start activity ComponentInfo{com.xxx.xxx/com.onesignal.PermissionsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2778)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2856)
android.app.ActivityThread.-wrap11
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1589)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:164)
android.app.ActivityThread.main (ActivityThread.java:6494)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
com.onesignal.PermissionsActivity.reregisterCallbackHandlers (PermissionsActivity.java:109)
com.onesignal.PermissionsActivity.handleBundleParams (PermissionsActivity.java:100)
com.onesignal.PermissionsActivity.onCreate (PermissionsActivity.java:82)
android.app.Activity.performCreate (Activity.java:7009)
android.app.Activity.performCreate (Activity.java:7000)
android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1214)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2731)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2856)
android.app.ActivityThread.-wrap11
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1589)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:164)
android.app.ActivityThread.main (ActivityThread.java:6494)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Aug 25, 2022

@shefich Thank you for reaching out! Have you been able to reproduce this issue? How many reports of this have you gotten?

@buivanlan
Copy link

buivanlan commented Oct 27, 2022

i has the same problem with android 8.1
Untitled

@azzastudios
Copy link

I have the same issue, on the exact same device as well.

@azzastudios
Copy link

I have not been able to reproduce this issue so far, using an emulator of the same device (Nexus 5X).
Any idea where this issue would occur?

@NiltonFirmino
Copy link

same issue
Captura de Tela 2023-01-11 às 13 35 58

@beeth0ven
Copy link

same issue here:
Screen Shot 2023-02-27 at 14 18 25

@shefich
Copy link
Author

shefich commented Apr 29, 2023

OneSignal Unity SDK version 3.0.10, the issue still persist.

@hagen00
Copy link

hagen00 commented Aug 11, 2023

I have the same version. Using Flutter with latest packages/versions as of time of writing.

crash

@shefich
Copy link
Author

shefich commented Mar 26, 2024

OneSignal 3.0.11 has the same bug.
Here (OneSignal/OneSignal-Android-SDK#1720) it gone stale. But the issue still exist and has many occurrences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@beeth0ven @shefich @buivanlan @emawby @hagen00 @NiltonFirmino @azzastudios and others