Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic Push sending messages through the web server

$
0
0

same problem for me, i am trying to send request in advanced rest client,
url: https://push.ionic.io/api/v1/push
method: post
header:
Content-Type: application/json
X-Ionic-Application-Id: "xxxxxxx"

json:
{
"tokens":[
"**********************************************"
],
"notification":{
"alert":"Hello World!",
"ios":{
"badge":1,
"sound":"ping.aiff",
"expiry": 1423238641,
"priority": 10,
"contentAvailable": 1,
"payload":{
"key1":"value",
"key2":"value"
}
},
"android":{
"collapseKey":"foo",
"delayWhileIdle":true,
"timeToLive":300,
"payload":{
"key1":"value",
"key2":"value"
}
}
}
}

Response: {result: "error"message: "You must provide a valid API key"}

Dont know where to put API key, and in which format, please help


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>