Jump to: navigation, search

A Firebase Cloud Functions Tutorial

66 bytes added, 18:06, 30 August 2017
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.
== Writing the Realtime Database Function ==
== Deploying the Cloud Functions ==

Navigation menu