-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it working with phonegap 1.2.0? #4
Comments
I'm curious as well. I didn't have much time to spend debugging it, but I didn't have success right out of the box. |
I just implemented it with PhoneGap 1.2.0, it is working fine - I registered the device ID with Urban Airship and I was able to receive notifications. Can anyone provide an example of how to include a JSON payload to specify an alias, tag, badge value, or quiet time setting for this device token when registering? (RE: http://urbanairship.com/docs/push.html#registration) |
@nfitzpatrick It's been a while since I used this plugin, but I think the push composer can help you create the payload, then on the PG side, there are some JS func that help you consume it. |
@iamcam Thanks for the reply. I figured it out. |
@nfitzpatrick Realize you posted this 7 months ago, but wondering if you could shed some light on the solution for me. How did you send the payload? Thanks so much!! |
Got the payload working... if anyone else stumbles onto this here is what I did: add these into the function registerUAPush() var JSON_payload = {};
JSON_payload.alias = "1"; //add tags etc the same way
request.setRequestHeader("Content-Type", "application/json;");
request.send(JSON.stringify(JSON_payload)); |
Hi all,
I tried it with phonegap 1.2.0 but its not working. Is it only my problem or problem for everyone? I did your integration list what you wrote. Its not giving any error.
Thanks
The text was updated successfully, but these errors were encountered: