Push notifications in native Windows 8 applications
IBM MobileFirst Platform Foundation provides a unified set of API methods to send, or push, notifications to devices where the MobileFirst application is installed. It is possible to send notification in 3 distinct types: event source notification, broadcast notification, or tag-based notification.
This tutorial explains the concept, API, and usage of push notifications in the context of Native Windows 8 applications.
To create and configure a Windows 8 native project, first follow these tutorials:
- Creating your first Native Windows 8 MobileFirst application
- Invoking adapter procedures from native Windows 8 applications
The following topics are covered:
Setting up push notification
application-descriptor.xml file, for windows8, set the following attributes to the
packageSID - Unique identifier of your Windows Store app
clientSecret - Secret key
Set the Identity Name and Publisher values manually in the package manifest or associate your native project with the application in the Windows Store by right-clicking the project and selecting Store->Associate App with the Store.
If you want your app to support toast notification, add the
ToastCapable="true" attribute to the
VisualElements element in the package manifest.
For more information about setting up your native Windows 8 application for push notification, see the topic about "Setting up push notifications for Windows 8" in the user documentation.
Event source notification
Event source notifications are notification messages that are targeted to devices with a user subscription.
Broadcast notifications are notification messages that are targeted to all subscribed devices.
Tag-based notifications are notification messages that are targeted to all the devices that are subscribed to a particular tag.
For more information, select a notification type.
Select a notification type▲
- Broadcast notifications in native Windows 8 applications
- Event source-based notifications in native Windows 8 applications
- Tag-based notifications in native Windows 8 applications