This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Example of Smartthings SmartApp to send downstream cloud message with Firebase | |
Event subscription is needed to trigger the event handler | |
*/ | |
def installed() { | |
initialize() | |
} | |
def updated() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Example of Node.JS to send downstream cloud message with Firebase | |
NPM package request is needed in this code gist | |
*/ | |
// Firebase auth key | |
var serverKey = "Firebase Server Key"; | |
var clientToken= "Client Device Token" | |
// Payload message data |