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

UAPhoneGap program does not run #2

Closed
jvence opened this issue Oct 2, 2011 · 3 comments
Closed

UAPhoneGap program does not run #2

jvence opened this issue Oct 2, 2011 · 3 comments

Comments

@jvence
Copy link

jvence commented Oct 2, 2011

I've downloaded the latest, followed instructions and tries to run the example (after modifying app key, secret key and using the appropriate provisioning profile). Firstly it seems that phonegap loads fine (used window.alert to test).

After window.plugins.pushNotification.register(successCallback, errorCallback, [{ alert:true, badge:true, sound:true }]); is called, none of the callback functions are evoked. Nothing appears in Xcode 4 log console other then:

2011-10-02 19:05:58.166 UAPhoneGap[15651:707] Device initialization: DeviceInfo = {"name":"Jean's iPad","uuid":"[hidden by me]","platform":"iPad","gap":"1.0.0","version":"4.3.5","connection":{"type":"wifi"}};
[Switching to process 12291 thread 0x0]

Not sure how to proceed.

@jvence
Copy link
Author

jvence commented Oct 4, 2011

Forgot to mention that this was running on Xcode 4 with the phonegap-1.0.0

@jrwpersonal
Copy link

I had the same problem.

It was caused by the fact that I actually had a phonegap-1.1.0 framework but the example from UA includes/assumes phone gap-1.0.0 (javascript). Make sure you grab phonegap-1.1.0 and replace the phonegap-1.0.0.js with the one from 1.1 and it will work.

@jvence
Copy link
Author

jvence commented Oct 17, 2011

Thanks jrwpersonal. You saved me and in fact it works fine now.

@jvence jvence closed this as completed Oct 17, 2011
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

2 participants