Pregunta

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?

¿Fue útil?

Solución

Try using matrixed parameters to query for all devices:

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top