// This registration token comes from the client FCM SDKs.
var registrationToken = 'bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...';
// See the "Defining the message payload" section below for details
// on how to define a message payload.
title: 'Title of your push notification',
body: 'Body of your push notification',
click_action: 'https://dummypage.com',
// Send a message to the device corresponding to the provided
.sendToDevice(registrationToken, payload)
.then(function(response) {
// See the MessagingDevicesResponse reference documentation for
// the contents of response.
console.log('Successfully sent message:', response);
console.log('Error sending message:', error);