Last active
March 17, 2019 20:11
-
-
Save hiranya911/77fa55044108e389bf0258ec04398922 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const admin = require('firebase-admin'); | |
(async () => { | |
admin.initializeApp(); | |
const message = { | |
data: { | |
time: '1:15 PM', | |
symbol: 'GOOG', | |
value: '1184.46' | |
}, | |
token: '<device_registration_token>', | |
}; | |
await admin.messaging().send(message); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment