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
try | |
{ | |
Notifications.init( APP_KEY ); | |
if (Notifications.isSupported) | |
{ | |
Notifications.service.addEventListener( NotificationEvent.NOTIFICATION_SELECTED, notifications_notificationSelectedHandler, false, 0, true ); | |
// | |
// This will trigger the start up notification if the application was started from a delayed notification | |
// Also this will perform the required registration for notifications permission on iOS 8+ |