-
-
Notifications
You must be signed in to change notification settings - Fork 136
SDK 31 above requires FLAG_IMMUTABLE or FLAG_MUTABLE PendingIntent. #166
Comments
Can you delete NativeShare from your project, comment out NativeShare related user code and build again? "com.com2us.futurecpb.android.google.global.normal" isn't a part of this plugin. |
Hi, I am having the same issue see details bellow: FATAL EXCEPTION: main java.lang.IllegalArgumentException: com.EduFeArn.EduFeArnEduGames: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 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. Reproduction Platform Have confirmed that building and targeting any API level below 31 does not cause this to happen |
I'm passing FLAG_MUTABLE's hardcoded value which is why I'm having trouble figuring out this issue: Lines 23 to 30 in a23ce3e
|
I do apologize for any inconvenience, seems the issue was on my side removed and reimported the plug-in and is working. |
Happy to help :D |
Reopened because @seilron hasn't responded yet. Please upgrade the plugin via GitHub and try again. |
Description of the bug
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime java.lang.IllegalArgumentException: com.com2us.futurecpb.android.google.global.normal: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime 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.
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at com.yasirkula.unity.NativeShareBroadcastListener.Initialize(NativeShareBroadcastListener.java:32)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at com.yasirkula.unity.NativeShareFragment.onCreate(NativeShareFragment.java:42)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.Fragment.performCreate(Fragment.java:2486)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1261)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.os.Handler.handleCallback(Handler.java:938)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.os.Handler.dispatchMessage(Handler.java:99)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.os.Looper.loopOnce(Looper.java:226)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.os.Looper.loop(Looper.java:313)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at android.app.ActivityThread.main(ActivityThread.java:8669)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at java.lang.reflect.Method.invoke(Native Method)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
2023/02/20 17:23:03.310 21577 21577 Error AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Reproduction steps
need Android OS 12~
Build SDK 31~
Excute and Share
Platform specs
Unity version : 2021.3.16f1
Platform : Android
Device : Android OS 12~
Plugin Download Path - Github
The text was updated successfully, but these errors were encountered: