addNotificationOpenedListener

fun addNotificationOpenedListener(listener: (NotificationOpenedPayload) -> Unit): (NotificationOpenedPayload) -> Unit

Register a callback fired every time the user taps a Swan push notification.

Return

the registered listener — pass to removeNotificationOpenedListener to unregister.