MoSync 3.3
NotificationManager.h File Reference

The NotificationManager manages local and push notification events and dispatches them to the target notifications. Android, iOS. More...

#include <MAUtil/String.h>
#include <MAUtil/Map.h>
#include <MAUtil/Environment.h>
#include "LocalNotification.h"

Classes

class  Notification::NotificationManager
 Class that handles notification events. It contains methods for setting & getting application's characteristics (e.g. application icon badge number on iOS). More...

Namespaces

namespace  Notification
 

MoSync Notification API classes.


Enumerations

enum  Notification::PushNotificationType { Notification::PUSH_NOTIFICATION_TYPE_BADGE = 0x01, Notification::PUSH_NOTIFICATION_TYPE_SOUND = 0x02, Notification::PUSH_NOTIFICATION_TYPE_ALERT = 0x04 }
 Constants indicating the types of push notifications the application accepts. Specific to iOS. On Android PUSH_NOTIFICATION_TYPE_ALERT is set by default. More...

Variables

const MAUtil::String Notification::NOTIFICATIONS_REGISTRATION_ERR_SERVICE_NOT_AVAILABLE = "SERVICE_NOT_AVAILABLE"
 Indicates that the device can't read the response, or there was a 500/503 from the server that can be retried later. The application should use exponential back off and retry. Platform: Android only.
const MAUtil::String Notification::NOTIFICATIONS_REGISTRATION_ERR_ACCOUNT_MISSING = "ACCOUNT_MISSING"
 Indicates that there is no Google account on the phone. The application should ask the user to open the account manager and add a Google account. Platform: Android only.
const MAUtil::String Notification::NOTIFICATIONS_REGISTRATION_ERR_AUTHENTICATION_FAILED = "AUTHENTICATION_FAILED"
 Indicates that the Google password was bad. The application should ask the user to enter his/her password, and let user retry manually later. Platform: Android only.
const MAUtil::String Notification::NOTIFICATIONS_REGISTRATION_ERR_TOO_MANY_REGISTRATIONS = "TOO_MANY_REGISTRATIONS"
 Indicates that the user has too many applications registered. The application should tell the user to uninstall some other applications, let user retry manually. Platform: Android only.
const MAUtil::String Notification::NOTIFICATIONS_REGISTRATION_ERR_INVALID_SENDER = "INVALID_SENDER"
 Indicates that the sender account is not recognized. Platform: Android only.

Detailed Description

The NotificationManager manages local and push notification events and dispatches them to the target notifications. Android, iOS.

Author:
Emma Tresanszki and Bogdan Iusco
Date:
1 Nov 2011
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines