SDK Installation
Installing using BOM
Integration using BOM is the recommended way of integration; refer to the Install Using BOM document. Once you have configured the BOM add the dependency in the app/build.gradle file as shown belowTimer with Progress Bar
Schedule Exact Alarm Permission
The SDK uses Alarms to periodically update the progress in the progress bar. Starting Android 12, additional permission is required to use exact alarms. Refer to the documentation for more details. To support the Timer with Progress Bar template on Android 12 and above devices, add the following permission in your manifest file.SCHEDULE_EXACT_ALARM permission, the Timer with Progress Bar template is not shown. Instead, the SDK falls back to the backup template configured for the campaign on the MoEngage dashboard. The backup template is the alternate notification you select when creating a Timer with Progress Bar campaign — it shows the timer but omits the progress bar so the notification can still be delivered.
Customization
The SDK defines the default color values for the progress bar’s background and progress color. These can be customized to suit the application’s theme by overriding the values for the below SDK-defined color attributes. To set the custom color in light and dark mode, override the values in res/values/colors.xml and res/values-night/colors.xml, respectively.Icon Shortcuts
Icon Shortcuts displays a row of three to six tappable icons, each with its own click action, on Android 12 and above. Marketers configure the template in the campaign as amoeFeatures key-value pair, so your app needs no additional code.
- Minimum versions:
com.moengage:moe-android-sdk15.04.00 andcom.moengage:rich-notification7.2.0. Users on app versions built with older SDKs receive the Basic notification. - Destinations: make sure your app handles every deep link and screen name used in an icon. An icon can also carry a
customaction, which reaches yourhandleCustomAction()override.