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


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.