Unity-Technologies/com.unity.mobile.notifications

[Android] OutOfMemoryError still persists in version 2.0.2

tomurtogu opened this issue · 6 comments

The issue I had reported for version 2.0.1 still persists in version 2.0.2

Unity version: 2020.3.34f
Devices
Redmi Note 10 (Android 12)
Nokia G10 (Android 12)

java.lang.OutOfMemoryError:
at android.os.Parcel.createString8Array (Parcel.java:1477)
at android.content.pm.ApplicationInfo. (ApplicationInfo.java:2019)
at android.content.pm.ApplicationInfo. (ApplicationInfo.java:62)
at android.content.pm.ApplicationInfo$1.lambda$createFromParcel$0 (ApplicationInfo.java:1988)
at android.content.pm.ApplicationInfo$1$$ExternalSyntheticLambda0.readRawParceled (Unknown Source)
at android.os.Parcel.readSquashed (Parcel.java:2122)
at android.content.pm.ApplicationInfo$1.createFromParcel (ApplicationInfo.java:1988)
at android.content.pm.ApplicationInfo$1.createFromParcel (ApplicationInfo.java:1985)
at android.os.Parcel.readParcelable (Parcel.java:3333)
at android.os.Parcel.readValue (Parcel.java:3226)
at android.os.Parcel.readArrayMapInternal (Parcel.java:3623)
at android.os.BaseBundle.initializeFromParcelLocked (BaseBundle.java:292)
at android.os.BaseBundle.unparcel (BaseBundle.java:236)
at android.os.Bundle.getParcelable (Bundle.java:1002)
at android.app.Notification$Builder.recoverBuilder (Notification.java:6397)
at com.unity.androidnotifications.UnityNotificationUtilities.recoverBuilder (UnityNotificationUtilities.java:517)
at com.unity.androidnotifications.UnityNotificationManager.loadSavedNotifications (UnityNotificationManager.java:519)
at com.unity.androidnotifications.UnityNotificationRestartOnBootReceiver.rescheduleSavedNotifications (UnityNotificationRestartOnBootReceiver.java:26)
at com.unity.androidnotifications.UnityNotificationRestartOnBootReceiver.onReceive (UnityNotificationRestartOnBootReceiver.java:21)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:4465)
at android.app.ActivityThread.access$1800 (ActivityThread.java:275)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2179)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:210)
at android.os.Looper.loop (Looper.java:299)
at android.app.ActivityThread.main (ActivityThread.java:8280)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1073)

yeah having the same issues, bump!

yeah having the same issues, bump!

Unfortunately no one cares about the problem and I don't think it will be fixed.
I'm looking for an alternative cross-platform notification package.

@tomurtogu if you find something that you're happy with, please post here ;)

Maybe they will fix this in the next version, I hope they will launch something soon!

Maybe they will fix this in the next version, I hope they will launch something soon!

This issue is causing crashes which are considering as bad behaviour by Google Play :/

Should no longer happen in latest master.