Urban Airship Android push getting "This app is not configured for iOS push" -
i'm using urban airship , testing using rest api. have google cloud messaging
connected urban airship account, , 1 android device registered successfully.
can send test messages the interface on urban airship dashboard.
but when try using rest api https://go.urbanairship.com/api/push/
body
{ "audience" : "all" , "device_types" : "all", "notification" : { "android": { "alert" : "this broadcast." } } }
i 400 bad request
response this app not configured ios push
any idea why?
update: listing specific device apid in "audience" section returns same result
what have correct, need include following http header:
accept: "application/vnd.urbanairship+json; version=3;
for beginner ruby developers, can achieved this:
req = net::http::post.new(uri.path) req["accept"] = "application/vnd.urbanairship+json; version=3;"
when, e.g., posting notification urbanairship.
Comments
Post a Comment