Hi,
Is there any proper guides for creating push notifications, I cannot get a POST request working and all information on urban airship seems too vague to follow.
Can someone help me translate the code below to work with Postman. Ive added in 3 header fields of Accept application/vnd.urbanairship+json; version=3; Accept application/json & Authorization Basic <myappkey:mymasterkey>. Although I couldnt find the value required for "master authorization string" anywhere on this site. Am I using the correct value here?
I then have a simple json feed in the body of the request as raw data. The response I get is Unauthorized, with error code 40101.
POST /api/push HTTP/1.1 Authorization: Basic <master authorization string> Content-Type: application/json Accept: application/vnd.urbanairship+json; version=3; { "audience": { "ios_channel": "9c36e8c7-5a73-47c0-9716-99fd3d4197d5" }, "notification": { "alert": "Hello!" }, "device_types": "all" }
Comments
1 comment