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
Fatal Exception: 'boolean android.app.NotificationChannel.isDeleted() #1291
Comments
@DaxeshV Thanks for reporting, could you provide the following details as well?
|
I also encountered this problem. This is Stack Trace. Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.NotificationChannel.isDeleted()' on a null object reference Details
100% are oppo phones 79% oppo phone versions are Android 9.
This issue has 396 crash events affecting 14 users.
We don't have oppo phones so we can't reproduce the crash. |
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.NotificationChannel.isDeleted()' on a null object reference
at android.os.Parcel.createException(Parcel.java:1972)
at android.os.Parcel.readException(Parcel.java:1934)
at android.os.Parcel.readException(Parcel.java:1884)
at android.app.INotificationManager$Stub$Proxy.getNotificationChannels(INotificationManager.java:2158)
at android.app.NotificationManager.getNotificationChannels(NotificationManager.java:568)
at com.onesignal.NotificationChannelManager.processChannelList(NotificationChannelManager.java:236)
at com.onesignal.OneSignal$5.complete(OneSignal.java:1071)
at com.onesignal.OneSignalRemoteParams.processJson(OneSignalRemoteParams.java:188)
at com.onesignal.OneSignalRemoteParams.access$100(OneSignalRemoteParams.java:12)
at com.onesignal.OneSignalRemoteParams$1.onSuccess(OneSignalRemoteParams.java:140)
at com.onesignal.OneSignalRestClient$5.run(OneSignalRestClient.java:270)
at java.lang.Thread.run(Thread.java:764) |
Hi @DaxeshV Looking at your stack trace, are you doing anything with notification channels? According to other reports, this is crash appears to be specific to Android 8+ Oppo devices. Is that the case with you as well? If so have you attempted to address this issue with the device manufacturer? A potential workaround you could try is not initializing OneSignal on Oppo devices.
If you have any additional info that hasn't been provided previously, please share here. |
Please check below link of firebase crash report. |
hi @rgomezp , do we have any fix to this issue yet? |
Howdy, |
This issue has 85 crash events affecting 2 users for the last 2 hours Stack trace: Caused by android.os.RemoteException Device status: 93% In background Device: Operating System: |
@Jeasmine don't forgot we subscribe paid plan of one signal. and this typo of issue not accepted. Humble request please fix this issue asap. |
We had the fix released under https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.3.1 |
@Jeasmine Do you have any plans to port it to 3.x? |
@janbolat Are there any blockers for you to update to the latest 4.x.x branch of the OneSignal-Android-SDK? If so feel free to create an issue and at me and I can follow up. We are minimizing the number of fixes for the 3.x.x branch to critical issues that are widespread and security fixes. Since this is affecting a limited number of specific Oppo devices on a specific ROM version we are not planning to backport the fix from 4.x.x to 3.x.x. |
@jkasten2 Thank you. |
Fix released under https://github.com/OneSignal/OneSignal-Android-SDK/releases/tag/4.3.1 |
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.app.NotificationChannel.isDeleted()' on a null object reference
at android.os.Parcel.readException(Parcel.java:2035)
at android.os.Parcel.readException(Parcel.java:1975)
at android.app.INotificationManager$Stub$Proxy.getNotificationChannels(INotificationManager.java:1824)
at android.app.NotificationManager.getNotificationChannels(NotificationManager.java:483)
at com.onesignal.NotificationChannelManager.processChannelList(NotificationChannelManager.java:49)
at com.onesignal.OneSignal$5.complete(OneSignal.java:36)
at com.onesignal.OneSignalRemoteParams.processJson(OneSignalRemoteParams.java:10)
at com.onesignal.OneSignalRemoteParams.access$100(OneSignalRemoteParams.java)
at com.onesignal.OneSignalRemoteParams$1.onSuccess(OneSignalRemoteParams.java:2)
at com.onesignal.OneSignalRestClient$5.run(OneSignalRestClient.java:4)
at java.lang.Thread.run(Thread.java:764)
The text was updated successfully, but these errors were encountered: