1.17.0
Core
- Added a package query entry in AndroidManifest.xml for
com.huawei.appmarket
to enable detection of the Huawei AppGallery. - Added missing
android:exported
manifest 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:core
dependency 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
onBatchMessageCancelledByError
onBatch.Messaging.LifecycleListener
, called when a message could not be loaded due to an error when loading the message's content. - Added
onBatchMessageWebViewActionTriggered
onBatch.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_IMMUTABLE
on Android M and higher in preparation for Android 12.
This also applies toPendingIntent
instances returned byBatch.Push.makePendingIntent*()
methods.
Event Dispatchers
- Added the new event types
MESSAGING_CLOSE_ERROR
andMESSAGING_WEBVIEW_CLICK
. See javadoc for more info.