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

java.lang.IllegalArgumentException:: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. #283

Open
khoshbin opened this issue Jun 6, 2022 · 5 comments

Comments

@khoshbin
Copy link

khoshbin commented Jun 6, 2022

Hi , there is problem in newer android versions

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.

2 at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
3 at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:752)
4 at android.app.PendingIntent.getService(PendingIntent.java:714)
5 at io.nlopez.smartlocation.geofencing.providers.GeofencingGooglePlayServicesProvider.init(GeofencingGooglePlayServicesProvider.java:86)
6 at io.nlopez.smartlocation.SmartLocation$GeofencingControl.<init>(SmartLocation.java:377)
7 at io.nlopez.smartlocation.SmartLocation.geofencing(SmartLocation.java:108)
8 at io.nlopez.smartlocation.SmartLocation.geofencing(SmartLocation.java:100)

@Usama7666
Copy link

facing same issue

@owaisalam12
Copy link

@khoshbin @Usama7666 Did you find any solution?

@WalidFekry
Copy link

facing same issue :"(

@usergoodvery
Copy link

Just replace every instance of PendingIntent.FLAG_UPDATE_CURRENT with PendingIntent.FLAG_MUTABLE|PendingIntent.FLAG_UPDATE_CURRENT

@christocracy
Copy link

This plugin has supported this flag for over a year.

Any reported references to this issue are due either to your own AndroidManifest or some other plugin.

this plugin is complied with SDK 33.

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

6 participants