I am getting a "400 Bad Request" error while I try to send the following push notification:
{"audience":{"named_user":"user_54434"},"notification":{"alert":"TEST"},"device_types":"all"}
Ruby code:
p = airship.create_push
p.audience = UA.named_user('user_54434')
p.device_types = UA.all
p.notification = UA.notification(alert: 'TEST')
p.send_push
Comments
2 comments