Skip to content

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

Description

@sanjaychans

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.

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