Skip to main content
The Notifly SDK provides an event listener for in-app popups. Use the listener to run additional actions in your app when a user interacts with a popup.
This feature requires Notifly Android SDK 1.16.1 or later.

In-app popup event listener interface

Implement the handleEvent method of IInAppMessageEventListener to listen for in-app popup events. The method receives the following parameters:
String
The name of the event.
Map<String, Any?>?
Additional information about the event, or null if no parameters are provided.

In-app popup events

The following eventName values are passed to handleEvent.
  • in_app_message_show: The in-app popup is displayed.
  • main_button_click: The user taps the main button in the popup.
  • hide_in_app_message_button_click: The user taps the Do Not Show Again button.
  • close_button_click: The user taps the close button in the popup.
  • survey_submit_button_click: The user taps the survey submit button.