Created
September 1, 2020 11:56
-
-
Save marchbold/66c2c1000eba16f1b7b9ff91f0a01fa5 to your computer and use it in GitHub Desktop.
Handling In-App Messages using the Push Notifications extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (PushNotifications.service.inAppMessaging.isSupported) | |
{ | |
PushNotifications.service.inAppMessaging.addEventListener( | |
InAppMessagingEvent.SELECTED, | |
inappmessaging_selectedHandler | |
); | |
} | |
function inappmessaging_selectedHandler( event:InAppMessagingEvent ):void | |
{ | |
trace( "inappmessaging_selectedHandler(): " ); | |
trace( " action: " + event.action.name + ":" + event.action.url ); | |
trace( " data: " + event.data == null ? "null" : JSON.stringify(event.data) ); | |
} | |
// com.distriqt.PushNotifications |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment