Skip to content
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

Open
Sly777 opened this issue Nov 22, 2011 · 6 comments
Open

is it working with phonegap 1.2.0? #4

Sly777 opened this issue Nov 22, 2011 · 6 comments

Comments

@Sly777
Copy link

Sly777 commented Nov 22, 2011

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

@iamcam
Copy link

iamcam commented Nov 27, 2011

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.

@nfitzpatrick
Copy link

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)

@iamcam
Copy link

iamcam commented Dec 12, 2011

@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.

@nfitzpatrick
Copy link

@iamcam Thanks for the reply. I figured it out.

@ghost
Copy link

ghost commented Jul 20, 2012

@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!!

@ghost
Copy link

ghost commented Jul 20, 2012

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));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants