Skip to content

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

@khoshbin

Description

@khoshbin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions