1.17.0
Core
- Added a package query entry in AndroidManifest.xml for
com.huawei.appmarketto enable detection of the Huawei AppGallery. - Added missing
android:exportedmanifest attributes in preparation for Android 12.
Actions
- Added
batch.rating, which asks the user to review your app using the Google Play In-App Review API.
To enable in-app review, add thecom.google.android.play:coredependency to your project.
If the library is missing or fails, the SDK will open the Play Store/Huawei AppGallery. - Added
batch.clipboard, which can copy text to the clipboard.
Messaging
- Added support for a new UI format: WebView. See documentation for more info.
- Added
onBatchMessageCancelledByErroronBatch.Messaging.LifecycleListener, called when a message could not be loaded due to an error when loading the message's content. - Added
onBatchMessageWebViewActionTriggeredonBatch.Messaging.LifecycleListener, called when a in-app webview format action has been triggered. - In-App campaign cache is now cleared on server errors
Push
- Important change: Push open pending intents are now created with
FLAG_IMMUTABLEon Android M and higher in preparation for Android 12.
This also applies toPendingIntentinstances returned byBatch.Push.makePendingIntent*()methods.
Event Dispatchers
- Added the new event types
MESSAGING_CLOSE_ERRORandMESSAGING_WEBVIEW_CLICK. See javadoc for more info.