Created
October 18, 2016 02:20
-
-
Save kkm/4b1e0713fc92a77c448b5605558970f8 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
var params = { | |
headers : { | |
'Content-Type' : ' application/json', | |
'Authorization' : "key=xxxx" | |
}, | |
data : { | |
"data" : { | |
"message" : "nummer:" + i | |
}, | |
"to" : "11111111111", | |
notification : { | |
title : 'nummer: ' + i, | |
body : 'body_data' | |
}, | |
}, | |
}; | |
Meteor.http.post("https://fcm.googleapis.com/fcm/send", params, function(err, data) { | |
//console.log(err); | |
console.log(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment