[TIMOB-28480] Android: Update "cloudpush" module for Android 12
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-09-03T17:55:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.1.0 |
Components | Android |
Labels | android, intent, intent-filter, module, pendingintent, pushnotification |
Reporter | Joshua Quick |
Assignee | Gary Mathews |
Created | 2021-06-08T01:23:58.000+0000 |
Updated | 2021-09-03T17:55:25.000+0000 |
Description
*Summary:*
We need to update this module to address Android 12's breaking-changes.
https://developer.android.com/about/versions/12/behavior-changes-12#exported
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability
*Intent-Filter Changes:*
Update the "AndroidManifest.xml" file's
PushBroadcastReceiver
XML element with attribute android:exported="true"
or else a build failure will occur.
https://github.com/appcelerator-modules/cloudpush/blob/master/android/timodule.xml
*APS SDK Library Update:*
Once we update the APS SDK library via ticket [NATIVESDK-363], we'll need to copy its "aps-cloudpush.jar" to this module's android/lib
folder below or else a runtime exception will happen when push notifications are recevied.
https://github.com/appcelerator-modules/cloudpush/tree/master/android/lib
cloudpush: https://github.com/appcelerator-modules/cloudpush/pull/53
master: https://github.com/appcelerator/titanium_mobile/pull/12986