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?

Était-ce utile?

La solution

Try using matrixed parameters to query for all devices:

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top