[TIMOB-28478] Android: Update "ti.geofence" module for Android 12
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-09-01T21:51:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.1.0 |
Components | Android |
Labels | android, intent, module, pendingintent |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-06-08T00:36:46.000+0000 |
Updated | 2021-09-01T21:51:35.000+0000 |
Description
*Summary:*
We need to update this module which addresses Android 12's breaking-changes.
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability
*Pending Intent Changes:*
Pass the [PendingIntent.FLAG_IMMUTABLE](https://developer.android.com/reference/android/app/PendingIntent#FLAG_IMMUTABLE) constant to the
PendingIntent.getService()
method call in [GeofenceModule.java](https://github.com/appcelerator-modules/ti.geofence/blob/master/android/src/ti/geofence/GeofenceModule.java) to prevent an exception from being thrown.
PR (master): https://github.com/appcelerator-modules/ti.geofence/pull/192