Skip to content

Instantly share code, notes, and snippets.

@marchbold
marchbold / distriqt.extension.notifications.example.as
Last active August 29, 2015 13:57
Simple example of displaying a local notification.
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+