Changes

Jump to: navigation, search

A Firebase Cloud Functions Tutorial

66 bytes added, 30 August
no edit summary
The code begins by extracting the user data from the event object and then accessing the email address. A message payload is then created consisting of a title and a body, where the body is constructed to include the new user’s email address. The function then calls the messaging sendToTopic() function to send the message to the OnlineUsers topic. Since this action will be performed asynchronously, the function returns a Promise in the form of the result from the sendToTopic() call. This ensures that the send operation will continue to run asynchronously until completion.
<htmlet>firebase_android</htmlet>
== Writing the Realtime Database Function ==
});
</pre>
<htmlet>firebase_android</htmlet>
== Deploying the Cloud Functions ==

Navigation menu