PushMessaging
This class provides utility functions related to push notifications, such as methods for registration, unregistration, and storage and retrieval of push notification registration information from a private shared preference file.
Functions
Clears the stored registration information.
Clears the stored SFDC device ID.
Get the app unique name for firebase
Returns the SFDC registration ID for the specified user account.
Returns Salesforce notifications types for the provided user account.
Returns the current registration ID, or null, if registration hasn't taken place yet.
Returns whether push notification registration/un-registration is in progress.
Returns whether the specified user account is currently registered or not.
Returns whether the user account is registered with SFDC or not.
Initiates push registration, if the application is not already registered. Otherwise, this method initiates registration/re-registration to the SFDC endpoint, in order to keep it alive, or to register a new account that just logged in.
Initiates push registration against the SFDC endpoint.
Sets the last time SFDC registration was successful for the specified user account.
Stores the GCM registration ID, and resets back off time.
Stores the current registration information, and resets the backoff time.
Performs SFDC un-registration from push notifications for the specified user account. Performs GCM un-registration only if this is the last account being logged out.