Question

I am trying to use apigee sdk js example of sending push notification. As I need to send push messages to all devices I changed the devicePath:

var devicePath = "devices/"+client.getDeviceUUID()+"/notifications";

to

var devicePath = "devices/*/notifications";

Calling client.sendPushToDevice then succeeds and reaches the apigee server but it shows Failed status in the Message History and no messages are delivered. Can you please advise how to fix it?

Was it helpful?

Solution

Try using matrixed parameters to query for all devices:

var devicePath = "devices;ql=*/notifications";

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top