|Class||public class FcmEvents|
|isSuccessful : Boolean|
[read-only] Indicates if the topic un/subscription has been successful or not
|msg : String|
|token : String|
|topic : String|
|DELETED_MESSAGES : String = onDeletedMessages|
[static] In some situations, FCM may not deliver a message.
|MESSAGE : String = onMessage|
|ON_SUBSCRIBE : String = subscribeToTopic|
|ON_UNSUBSCRIBE : String = unsubscribeFromTopic|
|TOKEN_REFRESH : String = onTokenRefresh|
[static] Dispatches when the system determines that the tokens is refreshed.
Indicates if the topic un/subscription has been successful or not
public function get isSuccessful():Boolean
public function get msg():String
public function get token():String
public function get topic():String
public static const DELETED_MESSAGES:String = onDeletedMessages
In some situations, FCM may not deliver a message. This occurs when there are too many messages (>100) pending for your app on a particular device at the time it connects or if the device hasn't connected to FCM in more than one month. In these cases, DELETED_MESSAGES may be dispatched. When the app instance receives this callback, it should perform a full sync with your app server. If you haven't sent a message to the app on that device within the last 4 weeks, FCM won't dispatch DELETED_MESSAGES.
public static const MESSAGE:String = onMessage
public static const ON_SUBSCRIBE:String = subscribeToTopic
public static const ON_UNSUBSCRIBE:String = unsubscribeFromTopic
public static const TOKEN_REFRESH:String = onTokenRefresh
Dispatches when the system determines that the tokens is refreshed.
This will not be called very frequently, it is needed for key rotation and to handle Instance ID changes due to:
The system will throttle the refresh event across all devices to avoid overloading application servers with token updates.