I am getting a "400 Bad Request" error while I try to send the following push notification:
p = airship.create_push
p.audience = UA.named_user('user_54434')
p.device_types = UA.all
p.notification = UA.notification(alert: 'TEST')
Named User is not available on all platforms, Windows specifically, so you are not allowed to use p.device_types = UA.all. You need to specify either Android, iOS or both.
I hope this helps.
Thanks for that information. Changing my code to specify device type of iOS fixed the issue.
p.device_types = UA.( ["ios"] )