|
MoSync 3.2.1
|
Push notifications are used for displaying alerts, playing sounds and for badging application icon. A push notification is send from a server and received by an application. An application can register for receiving push notifications using registerPushNotification function(NotificationManager class). On iOS platform a push notification can contain a badge number for the application icon, an alert sound and an alert message to display to the user. Check what contains a notification by calling containsMessage(), containsSoundFileName() and containsIconBadgeNumber() functions. On Android platform a push notification can contain a message, a title and a ticker text: the text that flows by in the status bar when the notification first activates. More...
#include <Notification/PushNotification.h>
Public Member Functions | |
| PushNotification () | |
| virtual | ~PushNotification () |
| bool | containsMessage () const |
| MAUtil::String * | getMessage () const |
| bool | containsSoundFileName () const |
| MAUtil::String * | getSoundFileName () const |
| bool | containsIconBadgeNumber () const |
| int | getIconBadgeNumebr () const |
Protected Member Functions | |
| void | setMessage (const MAUtil::String &alertMessage) |
| void | setSoundFileName (const MAUtil::String &soundFileName) |
| void | setIconBadge (const int iconBadgeNumber) |
Friends | |
| class | NotificationManager |
Push notifications are used for displaying alerts, playing sounds and for badging application icon. A push notification is send from a server and received by an application. An application can register for receiving push notifications using registerPushNotification function(NotificationManager class). On iOS platform a push notification can contain a badge number for the application icon, an alert sound and an alert message to display to the user. Check what contains a notification by calling containsMessage(), containsSoundFileName() and containsIconBadgeNumber() functions. On Android platform a push notification can contain a message, a title and a ticker text: the text that flows by in the status bar when the notification first activates.