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

Local notification on Android cause null reference #92

Open
gianitobia opened this issue May 16, 2018 · 2 comments
Open

Local notification on Android cause null reference #92

gianitobia opened this issue May 16, 2018 · 2 comments

Comments

@gianitobia
Copy link

Hi,
we just release a game where we've integrated your plugin both on iOS and Android.
We've seen many report of crash caused by the same error on our app.

The report by the play store is the following:

`OnePlus OnePlus3T (OnePlus3T), 6144MB RAM, Android 8.0

java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2017.3.1f1
Device model : OnePlus ONEPLUS A3003
Device fingerprint: OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR6.170623.013/12041042:user/release-keys
Caused by
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3424)
at android.app.ActivityThread.-wrap17 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1772)
at android.os.Handler.dispatchMessage (Handler.java:105)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6809)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)
Caused by: java.lang.NullPointerException:
at net.agasper.unitynotification.UnityNotificationManager.CreateChannel (UnityNotificationManager.java:41)
at net.agasper.unitynotification.UnityNotificationManager.createChannelIfNeeded (UnityNotificationManager.java:64)
at net.agasper.unitynotification.UnityNotificationManager.onReceive (UnityNotificationManager.java:154)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3410)`

Do you know how to fix this null reference?

@Agasper
Copy link
Owner

Agasper commented May 18, 2018

Hi, could you specify commit you used for this build ?
Could you try the last one ?

@Agasper
Copy link
Owner

Agasper commented May 18, 2018

I mean

/PluginSrc/app/release/notification.jar

not a provided one inside example project

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

2 participants