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

PendingIntent changes to Android S+ (version 31 and above) #43

Open
sanjaychans opened this issue Jun 30, 2023 · 2 comments
Open

PendingIntent changes to Android S+ (version 31 and above) #43

sanjaychans opened this issue Jun 30, 2023 · 2 comments

Comments

@sanjaychans
Copy link

Hi,
I've been having the following issue since targeting the framework to 33. An alert popups up with the following message when starting monitoring and it crashes. This happens only on devices 31+.

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.'

Running the current latest version of the plugin (1.8.1.1). I could learn from the source code that the GeofenceTransitionPendingIntent is defined with the UpdateCurrent flag which is causing the issue in 31+ I suppose.

Are there any updates that can be expected on this or is there any workaround? Any help would be highly appreciated.

Thank you.

@007vel
Copy link

007vel commented Nov 28, 2023

Same issue, Any update?

@BhargavSai-17
Copy link

BhargavSai-17 commented May 24, 2024

Hi @sanjaychans,
Any update regarding this issue?

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

3 participants