Where lookup_url is a valid UA url that I obtained from creating a scheduled push. After opening up the library I found that in lib/push.rb we were doing the following:
Hi, please reach out to our support team at http://support.urbanairship.com for these kinds of issues and questions instead of posting an issue here. Thank you!
I'm running version 3.2.4 of the gem.
I run into the following when trying to retrieve a scheduled push notification from UrbanAirship using the .from_url method.
I'm doing the following:
Where lookup_url is a valid UA url that I obtained from creating a scheduled push. After opening up the library I found that in lib/push.rb we were doing the following:
Where response body was already a valid ruby object changing
payload = JSON.load(response_body)
topayload = response_body['body']
fixed my problem.I would open up a PR for this but I was running into some problems getting the tests to run on my machine.
Also this documentation appears to be incorrect, I wasn't sure who to contact about that: http://docs.urbanairship.com/reference/libraries/ruby/3.2.4/push.html#updating-or-canceling-a-schedule