syncTriggers

fun syncTriggers(context: Context)

Invoke this method to manually fetch campaigns when the application is running in background. This API syncs the campaigns for the account configured as default. Only call this API if you have disabled the default background sync.

Since

2.0.0

Parameters

context

instance of Context

Throws

if the SDK is not initialized.


fun syncTriggers(context: Context, appId: String)

Invoke this method to manually fetch campaigns when the application is running in background. This API syncs the campaigns for the given account. Only call this API if you have disabled the default background sync.

Since

2.0.0

Parameters

context

instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.

Throws

if the SDK is not initialized.