Since Reteno SDK 2.0.1, you can show users In-App messages when they open an app.
You can also pause showing In-App messages to prevent interrupting some important flows like registration or payment.
All In-App messages that had to be shown during pause will be skipped and shown next time when display rules match.
If you want to pause In-App messages on application startup, you can do this by setting isPausedInAppMessages
to false in RetenoConfig
during Reteno SDK initialization in the application's onCreate
:
override fun onCreate() {
super.onCreate()
retenoInstance = RetenoImpl(this, "your_access_key_here", RetenoConfig(isPausedInAppMessages = false))
}
override fun onCreate() {
super.onCreate()
retenoInstance = new RetenoImpl(this, "your_access_key_here", new RetenoConfig(false))
}
After initialization, you can pause or unpause In-App messages anytime by calling given the function:
reteno.pauseInAppMessages(isPaused: Boolean)
reteno.pauseInAppMessages(boolean isPaused)