Packagecom.myflashlab.air.extensions.firebase.fcm
Classpublic class FcmEvents
InheritanceFcmEvents Inheritance flash.events.Event



Public Properties
 PropertyDefined 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
Public Constants
 ConstantDefined 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
Property Detail
isSuccessfulproperty
isSuccessful:Boolean  [read-only]

Indicates if the topic un/subscription has been successful or not


Implementation
    public function get isSuccessful():Boolean
msgproperty 
msg:String  [read-only]


Implementation
    public function get msg():String
tokenproperty 
token:String  [read-only]


Implementation
    public function get token():String
topicproperty 
topic:String  [read-only]


Implementation
    public function get topic():String
Constant Detail
DELETED_MESSAGESConstant
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.

MESSAGEConstant 
public static const MESSAGE:String = onMessage

ON_SUBSCRIBEConstant 
public static const ON_SUBSCRIBE:String = subscribeToTopic

ON_UNSUBSCRIBEConstant 
public static const ON_UNSUBSCRIBE:String = unsubscribeFromTopic

TOKEN_REFRESHConstant 
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.