MoEMiPushHelper
Helper class for MoEngage Mi Push Module
Author
Umang Chamaria
Since
2.0.00
Types
Functions
getPushToken
Link copied to clipboard
logNotificationClicked
Link copied to clipboard
Track notification click. Make sure the Bundle has the push notification payload received from Mi Service.
onNotificationClicked
Link copied to clipboard
passPushPayload
Link copied to clipboard
passPushToken
Link copied to clipboard
Helper API to pass the push token to the MoEngage platform for the account configured as default.
fun passPushToken(@NonNull context: Context, @NonNull pushToken: String, @NonNull appId: String)
Content copied to clipboard
Helper API to pass the push token to the MoEngage platform for the given account.
setDataRegion
Link copied to clipboard
fun setDataRegion(context: Context, region: String, appId: String? = null)
Content copied to clipboard
Set the region in which the Mi data reside.
setRegistrationAccount
Link copied to clipboard
Sets the Account whose config should be used for token registration.