Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.
This repository was archived by the owner on May 10, 2026. It is now read-only.

SDK 31 above requires FLAG_IMMUTABLE or FLAG_MUTABLE PendingIntent. #166

Description

@seilron

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions