Reputation: 125
i am creating phonegap apps via phonegap build..i am able to check for "normal" events and variables in the web inspector tools. but the browser doesnt understand phonegap events
for example:
document.addEventListener('deviceready', this.onDeviceReady, false);
this code throws an error as there is no 'deviceready' event.
How can i check for native phonegap events and methods on PC.
Note: i am using phoneGap Build and not the CLI
Upvotes: 0
Views: 127
Reputation: 1426
You can't run an PhoneGap App in your browser. Luckily you have few options.
logcat
to log your debug messages. The down side is that some features (e.g. push notifications) won't work in an emulator without setting up helpers.Here's a list of some other debugging options you may consider: https://github.com/phonegap/phonegap/wiki/Debugging-in-PhoneGap. Notice that Ripple works only when using PhoneGap 2.x (and should not use it). Hope this helps.
Upvotes: 2