Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Target 31 and above 'Pendingintent' #113

Open
devboram opened this issue Oct 23, 2023 · 0 comments
Open

Android Target 31 and above 'Pendingintent' #113

devboram opened this issue Oct 23, 2023 · 0 comments

Comments

@devboram
Copy link

  1. Crash Log :

Fatal Exception: java.lang.IllegalArgumentException: com.jasonmg.market09: 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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:408)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:688)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:675)
at com.facebook.AccessTokenManager.setTokenExpirationBroadcastAlarm(AccessTokenManager.java:170)
at com.facebook.AccessTokenManager.setCurrentAccessToken(AccessTokenManager.java:135)
at com.facebook.AccessTokenManager.setCurrentAccessToken(AccessTokenManager.java:115)
at com.facebook.AccessTokenManager$4.onBatchCompleted(AccessTokenManager.java:372)
at com.facebook.GraphRequest$5.run(GraphRequest.java:1403)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8810)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

  1. Plugin Version
    flutter_share_me version 1.4.0
    check build.gradle in flutter_share_me (com.facebook.android:facebook-share:5.15.3)

  2. My Inquiry :
    I would like to inquire when the 'Pendingintent' changes will take effect For Android Target 31 and above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant