Hello, I’m having some issues with a select few devices. A few of my testers have reported the following:
When starting the app, it immediately closes with no loading or visual cue or anything.
Google Play Console caught this for me:
java.lang.Error: FATAL EXCEPTION [pool-4-thread-1]
Unity version : 2020.3.23f1
Device model : samsung SM-F916U
Device fingerprint: samsung/f2qsqw/f2q:12/SP1A.210812.016/F916USQS2FULH:user/release-keys
Build Type : Release
Scripting Backend : IL2CPP
ABI : arm64-v8a
Strip Engine Code : true
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags (PendingIntent.java:382)
at android.app.PendingIntent.getBroadcastAsUser (PendingIntent.java:673)
at android.app.PendingIntent.getBroadcast (PendingIntent.java:660)
at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent (ForceStopRunnable.java:174)
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped (ForceStopRunnable.java:108)
at androidx.work.impl.utils.ForceStopRunnable.run (ForceStopRunnable.java:86)
at androidx.work.impl.utils.SerialExecutor$Task.run (SerialExecutor.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:920)
On a separate issue, AdMob test ads were working fine for me, and I made no changes that I’m aware of, but now they just aren’t and I don’t see anything related to an issue in the logcats.
Thank you, that makes sense and I verified that they are using Android 12 devices. I don’t see any updates that address this issue in any of the plugins I’m using. I’m not opposed to addressing it manually but I don’t know where to even begin. I’m currently using AdMob and Play Games Services plugins for Unity.
I have done some app work in Android Studio and understand Intents a bit, but I don’t know where the plugins handle writing this code.
As per AdMob, I see a note in their release notes here. Try updating to that version. Regarding GPGS, I see an issue listed on their issue list. You may need to make a build of your own from that project(by adding the IMMUTABLE flag to pending intent) if they didn’t fix it yet.
That’s me that posted the bug on GPGS since I couldn’t find anything about it I will look into the AdMob issue and see if that helps. I must have overlooked it!