Package | com.myflashlab.air.extensions.firebase.fcm |
Class | public class FcmEvents |
Inheritance | FcmEvents flash.events.Event |
Property | Defined By | ||
---|---|---|---|
isSuccessful : Boolean [read-only]
Indicates if the topic un/subscription has been successful or not
| FcmEvents | ||
msg : String [read-only] | FcmEvents | ||
token : String [read-only] | FcmEvents | ||
topic : String [read-only] | FcmEvents |
Constant | Defined By | ||
---|---|---|---|
DELETED_MESSAGES : String = onDeletedMessages [static]
In some situations, FCM may not deliver a message. | FcmEvents | ||
MESSAGE : String = onMessage [static] | FcmEvents | ||
ON_SUBSCRIBE : String = subscribeToTopic [static] | FcmEvents | ||
ON_UNSUBSCRIBE : String = unsubscribeFromTopic [static] | FcmEvents | ||
TOKEN_REFRESH : String = onTokenRefresh [static]
Dispatches when the system determines that the tokens is refreshed. | FcmEvents |
isSuccessful | property |
isSuccessful:Boolean
[read-only] Indicates if the topic un/subscription has been successful or not
public function get isSuccessful():Boolean
msg | property |
msg:String
[read-only] public function get msg():String
token | property |
token:String
[read-only] public function get token():String
topic | property |
topic:String
[read-only] public function get topic():String
DELETED_MESSAGES | Constant |
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.
MESSAGE | Constant |
public static const MESSAGE:String = onMessage
ON_SUBSCRIBE | Constant |
public static const ON_SUBSCRIBE:String = subscribeToTopic
ON_UNSUBSCRIBE | Constant |
public static const ON_UNSUBSCRIBE:String = unsubscribeFromTopic
TOKEN_REFRESH | Constant |
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.