I built a game for Android. It works well, however, on Android 12 it sometimes give this error message:
Crash details - android.app.PendingIntent.checkFlags
Type - java.lang.IllegalArgumentException
Exception java.lang.IllegalArgumentException:
at android.app.PendingIntent.checkFlags (PendingIntent.java:375)
at android.app.PendingIntent.getBroadcastAsUser (PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast (PendingIntent.java:632)
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:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:637)
at java.lang.Thread.run (Thread.java:1012)
How do I set IMMUTABLE flag for PendingIntent in Godot 3.5?