कंसोल पर जाएं

Firebase.Messaging.FirebaseMessaging

Firebase Cloud Messaging API.

Summary

Firebase Cloud Messaging allows you to send data from your server to your users' devices, and receive messages from devices on the same connection if you're using a XMPP server.

The FCM service handles all aspects of queueing of messages and delivery to client applications running on target devices.

Events

MessageReceived
static System.EventHandler< MessageReceivedEventArgs >
Called on the client when a message arrives.
TokenReceived
static System.EventHandler< TokenReceivedEventArgs >
Called on the client when a registration token message arrives.

Properties

TokenRegistrationOnInitEnabled
static bool
Enable or disable token registration during initialization of Firebase Cloud Messaging.

Public static functions

RequestPermissionAsync()
Displays a prompt to the user requesting permission to display notifications.
Send(FirebaseMessage message)
void
Send an upstream ("device to cloud") message.
Subscribe(string topic)
void
Subscribe to receive all messages to the specified topic.
SubscribeAsync(string topic)
Subscribe to receive all messages to the specified topic.
Unsubscribe(string topic)
void
Unsubscribe from a topic.
UnsubscribeAsync(string topic)
Unsubscribe from a topic.

Events

MessageReceived

static System.EventHandler< MessageReceivedEventArgs > MessageReceived

Called on the client when a message arrives.

TokenReceived

static System.EventHandler< TokenReceivedEventArgs > TokenReceived

Called on the client when a registration token message arrives.

Properties

TokenRegistrationOnInitEnabled

static bool TokenRegistrationOnInitEnabled

Enable or disable token registration during initialization of Firebase Cloud Messaging.

This token is wh