sync

fun sync(force: Boolean = false, callback: (SdkError?) -> Unit? = null)

Sync Notify campaign data.

The sync method is provided as a development tool, in production applications it should not be called. The SDK will automatically sync data with the Flybuy portal. However, the schedule used by the SDK may not be conducive to testing and development iterations.

Important: The force parameter will destroy all local notify data and re-fetch any data.

Example:

NotifyManager.getInstance().sync(true) { sdkError ->
sdkError?.let {
Snackbar.make(binding.root, sdkError.userError(), Snackbar.LENGTH_LONG)
.show()
}
}