Hi Wani,
Sorry for late reply..need to clear the flow of push from you..
1. In Kinvey Console-> Engagement->Push ,under configurations I have added my Sender ID and API Keys..I am getting response message sent 202 Accepted.But I am not getting any notification.
2. I want to know more about custom endpoint. My main doubt is suppose I have written my business logic as
function onRequest(request, response, modules){
var push = modules.push;
var reqs=request.body;
push.broadcastMessage(reqs);
response.complete();
}
So how kinvey will know to which device it has to send notification? Does it send notification to the device which I have registered using below code?
POST /push/:appKey/register-device HTTP/1.1 Host: baas.kinvey.com Authorization: [user credentials] Content-Type: application/json { "platform": "android", "deviceId": "device ID goes here" }
Hi Shweta,
A couple of questions around this:
Shweta Singh
Hi,
I am not receiving push notifications on my android phone.I have registered the device on kinvey through
/push/appkey/register-device
{
"platform": "android",
"deviceId": "my device id",
"userId": "my user id"
}
Once registered I have added my custome end point as :
function onRequest(request, response, modules){
var push = modules.push;
push.broadcastMessage('Test');
response.complete();
}
But I am not getting any message on my registered device.
This is what I am getting when sending request and getting response:
Request
Response