Skip to content

Android Target 31 and above 'Pendingintent' #113

@devboram

Description

@devboram
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions