trackUserPushPreference
fun trackUserPushPreference(context: Context, pushPreference: Boolean): MoETask<UserAttributeResult.Standard>
Set user's push preference.
Since
12.0.00
Parameters
context
Instance of Context
pushPreference
true if push is enabled, else false.
Throws
if the SDK is not initialized.
fun trackUserPushPreference(context: Context, pushPreference: Boolean, appId: String): MoETask<UserAttributeResult.Standard>
Set user's push preference.
Since
12.0.00
Parameters
context
Instance of Context
pushPreference
true if push is enabled, else false.
appId
Account identifier, APP ID on the MoEngage Dashboard.
Throws
if the SDK is not initialized.