Google Cloud Messaging App Instance class
class MessagingInstanceUnbind or remove FirebaseApp.
void resetApp()Perform the async task repeatedly (DEPRECATED).
void loop()Create relationship maps for app instances (subscribe the apps to the topic).
String batchAdd(AsyncClientClass &aClient, const String &topic, const object_t &IID)Params:
aClient- The async client.topic- The topic to subscribe.IID- The object_t object represents the instance ID tokens or registration tokens array.
Returns:
String- The response payload.
Create relationship maps for app instances (subscribe the apps to the topic).
void batchAdd(AsyncClientClass &aClient, const String &topic, const object_t &IID, AsyncResult &aResult)Params:
aClient- The async client.topic- The topic to subscribe.IID- The object_t object represents the instance ID tokens or registration tokens array.aResult- The async result (AsyncResult).
Create relationship maps for app instances (subscribe the apps to the topic).
void batchAdd(AsyncClientClass &aClient, const String &topic, const object_t &IID, AsyncResultCallback cb, const String &uid = "")Params:
aClient- The async client.topic- The topic to subscribe.IID- The object_t object represents the instance ID tokens or registration tokens array.cb- The async result callback (AsyncResultCallback).uid- The user specified UID of async result (optional).
Remove relationship maps for app instances (unsubscribe the apps to the topic).
String batchRemove(AsyncClientClass &aClient, const String &topic, const object_t &IID)Params:
aClient- The async client.topic- The topic to unsubscribe.IID- The object_t object represents the instance ID tokens or registration tokens array.
Returns:
String- The response payload.
Remove relationship maps for app instances (unsubscribe the apps to the topic).
void batchRemove(AsyncClientClass &aClient, const String &topic, const object_t &IID, AsyncResult &aResult)Params:
aClient- The async client.topic- The topic to unsubscribe.IID- The object_t object represents the instance ID tokens or registration tokens array.aResult- The async result (AsyncResult).
Remove relationship maps for app instances (unsubscribe the apps to the topic).
void batchRemove(AsyncClientClass &aClient, const String &topic, const object_t &IID, AsyncResultCallback cb, const String &uid = "")Params:
aClient- The async client.topic- The topic to unsubscribe.IID- The object_t object represents the instance ID tokens or registration tokens array.cb- The async result callback (AsyncResultCallback).uid- The user specified UID of async result (optional).
Create registration tokens for APNs tokens.
String batchImport(AsyncClientClass &aClient, const String &application, bool sandbox, const object_t &APNs)Params:
aClient- The async client.application- The Bundle id of the app.sandbox- The Boolean to indicate sandbox environment (TRUE) or production (FALSE).APNs- The object_t object represents the iOS APNs tokens array.
Returns:
String- The response payload.
Create registration tokens for APNs tokens.
void batchImport(AsyncClientClass &aClient, const String &application, bool sandbox, const object_t &APNs, AsyncResult &aResult)Params:
aClient- The async client.application- The Bundle id of the app.sandbox- The Boolean to indicate sandbox environment (TRUE) or production (FALSE).APNs- The object_t object represents the iOS APNs tokens array.aResult- The async result (AsyncResult).
Create registration tokens for APNs tokens.
void batchImport(AsyncClientClass &aClient, const String &application, bool sandbox, const object_t &APNs, AsyncResultCallback cb, const String &uid = "") Params:
aClient- The async client.application- The Bundle id of the app.sandbox- The Boolean to indicate sandbox environment (TRUE) or production (FALSE).APNs- The object_t object represents the iOS APNs tokens array.cb- The async result callback (AsyncResultCallback).uid- The user specified UID of async result (optional).
Get information about app instances.
String get(AsyncClientClass &aClient, const String &IID)Params:
aClient- The async client.IID- The instance ID token.
Returns:
String- The response payload.
Get information about app instances.
void get(AsyncClientClass &aClient, const String &IID, AsyncResult &aResult)Params:
aClient- The async client.IID- The instance ID token.aResult- The async result (AsyncResult).
Get information about app instances.
void get(AsyncClientClass &aClient, const String &IID, AsyncResultCallback cb, const String &uid = "")Params:
aClient- The async client.IID- The instance ID token.cb- The async result callback (AsyncResultCallback).uid- The user specified UID of async result (optional).