Skip to content

Commit

Permalink
Fixed geofence support for Android 31+, by adding FLAG_IMMUTABLE to p…
Browse files Browse the repository at this point in the history
…ending intent.
  • Loading branch information
shannah committed Aug 9, 2023
1 parent 5715807 commit 8e6bb26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ private PendingIntent createGeofencePendingIntent(
AndroidNativeUtil.getContext().getApplicationContext(),
0,
intent,
PendingIntent.FLAG_UPDATE_CURRENT
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE
);
return geofencePendingIntent;
} else {
Expand Down

0 comments on commit 8e6bb26

Please sign in to comment.