Packagecom.tuarua.firebase
Classpublic class Messaging
InheritanceMessaging Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  channelId : String
[static] [write-only] The id of the channel.
Messaging
  channelName : String
[static] [write-only] The user visible name of the channel.
Messaging
  token : String
[read-only] The FCM token is used to identify this device so that FCM can send notifications to it.
Messaging
Public Methods
 MethodDefined By
  
dispose():void
[static] Disposes the ANE
Messaging
  
subscribe(toTopic:String):void
Asynchronously subscribes to a topic.
Messaging
  
unsubscribe(fromTopic:String):void
Asynchronously unsubscribe from a topic.
Messaging
Property Detail
channelIdproperty
channelId:String  [write-only]

The id of the channel. Must be unique per package. The value may be truncated if it is too long.


Implementation
    public static function set channelId(value:String):void
channelNameproperty 
channelName:String  [write-only]

The user visible name of the channel. The recommended maximum length is 40 characters; the value may be truncated if it is too long.


Implementation
    public static function set channelName(value:String):void
tokenproperty 
token:String  [read-only]

The FCM token is used to identify this device so that FCM can send notifications to it. It is associated with your APNS token when the APNS token is supplied, so that sending messages to the FCM token will be delivered over APNS.

The FCM token is sometimes refreshed automatically.

Once you have an FCM token, you should send it to your application server, so it can use the FCM token to send notifications to your device.


Implementation
    public function get token():String
Method Detail
dispose()method
public static function dispose():void

Disposes the ANE

subscribe()method 
public function subscribe(toTopic:String):void

Asynchronously subscribes to a topic.

Parameters

toTopic:String — The name of the topic, for example, "sports".

unsubscribe()method 
public function unsubscribe(fromTopic:String):void

Asynchronously unsubscribe from a topic.

Parameters

fromTopic:String — The name of the topic, for example "sports".