This tutorial is the second part of our tutorials covering setting up and running the Push Notifications Native Extension for Adobe AIR from distriqt.
The Push Notifications extension enables the push notification functionality in your mobile AIR application allowing you to send (or push) notifications and data to users of your application. The extensions API will have you up and running with remote notifications in minutes.
Importantly this extension allows you to write code once and have access to push notifications on multiple platforms allowing you to quickly integrate push notifications no matter what platform you are developing for!
In this tutorial we will run through the concepts involved in getting your application setup and running with push notifications including:
- Including the extension in your application
- Registering for notifications
- Listening for notifications
- Sending a test notification
Currently we support the following platforms:
- Apple Push Notification Service (APNS)
- Google Cloud Messaging (GCM)
The extension provides a completely native implementation of push notifications allowing you to receive notifications from the associated services.
Please note that this is not a server implementation. You’ll need to investigate appropriate server code for your application and to manage your user tokens and to dispatch notifications appropriately. We will however show you how to send a single “test” notification using several methods.