Closed gwil closed 12 years ago
Is there a bum example? I ran into this issue when I was first experimenting with the API, but their stuff is pretty clearly doc'd.
I do plan to make some enhancements to the wrapper's API soon to prevent proliferation of hard-coded routes in code that implements the wrapper. That should help, yes?
Just referring to the example provided for the /api/push/
endpoint.
In the example, ua.pushNotification("/api/push", payload0, function(error) {....});
, it returns a 301, documented by UA that it's likely because of the missing trailing slash. I'm not sure if the other endpoints are that strict; I've ran into the /api/push/
issue before, thought I'd point it out for others!
https://support.urbanairship.com/customer/portal/articles/60923-troubleshooting-http-status-codes
This should be fixed with v0.2.2.
It should probably be noted that the
/api/push/
endpoint requires the trailing/
.Just to save tracking down that 405 or 301 response.