I'm building a Phonegap application. I've already made the html application, and tested it in my Windows Google Chrome browser, with no errors. I've cheked it in the navigator of my Android Phone and it is working. However, after Phonegap, I see some things are not working.
Which browser is Phonegap using? Is it not the same as the Android navigator? Can I somehow debug it?
On my Eclipse console I only see errors about Vertext shaders.
Thanks
PhoneGap instantiates an Android WebView component with is not equal to the Android Browser. If your code has console.log statements you should be able to see them in LogCat tab in Eclipse.
If you want better debugging you should add WeInRe to your project for remote debugging.
You can add console.log statements, which can be seen with adb logcat in the Terminal, or with DDMS.
And how about this? What do you think?
https://chrome.google.com/webstore/detail/ripple-emulator-beta/geelfhphabnejjhdalkjhgipohgpdnoc?hl=en
Related
I know theres a few posts on this site regarding this error message but my issue doesn't seem to be answered by any of the solutions.
I am debugging my React Native app using my Android testing phone. Everything works correctly until I start using "Debug JS Remotely" with Chrome's React Native Debugger. That is when Chrome gives me this error. I do not have any other packages running and my AppRegistry has the correct name.
Edit: I restarted my computer and I managed to get Chrome React Native Debugger working without this error. However, upon reloading the app this error starts to pop up again.
Edit: Another thing to note, my application is working correctly when I'm not using Chrome's debugger. I have live reloading on and my app updates upon making changes to my files. This issue only appears when I turn on Remote JS Debugger.
in two situations this will happen:
1: when your development server is not up so try this:
react-native start
2: otherwise try this in terminal react-native run-android
Make sure that the packager is running from same directory as the app.
Make sure that the string in MainActivity.java matches the string in index.android.js.
I have developed my app in phonegap. I need to generate log due to some issue. How can I generate it?
If you mean log for debug, just use console.log(<your text>) and open developer tools / Web inspector to see it. Also can be viewed in LogCat
I am doing some tests and realised that android browser does not display my website. The other browsers are ok.
I used these libraries:
easeljs
mathjax
jquery
I also used html5 webworkers. This is my test website: thewebdesign.org/v16/
My question is:How to find out the reasons.
Take a look at https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging to be able to inspect the chrome console.
Hope it helps.
Remote debugging is the most accurate / best, as suggested above, but if you are not able to use remote debugging: You can try out browserstack (http://browserstack.com/). Even though you would fix the android issue, there are no guarantees, IOS works. That is why I have been using browserstack, to test IOS.
i'm using Cordova Chrome App with Android ADT Bundle.
I have made a test application that runs ok in web browser and as web app for chrome.
But when i run the app for android window.close() doesn't work when i create the "native" app for android.
I read about other methods in cordova and chrome.app... but it is difficult for me because i can not debug using console.log in android emulator.
My questions:
How can i close the app?
How can i debug through console.log for example?
I read and try log cat, etc. but it doesn't show anything from javascript
Thank you
You could use the below line of code to exit the app.
navigator.app.exitApp();
I'm writing a mobile marketing app, which is supposed to work on both iOS and android 2.2. The app is working just fine on iOS, but several things aren't working on android. It seems like some javascript responsible for handling button press events, with jQuery, is the culprit, however, to find the location of the error, I'm looking at the old-school equivalent of printline. Does anyone know of anything more convenient?
Don't dis the console.log, I've definitely found it to be useful with PhoneGap apps.
This page http://debug.phonegap.com/ gives you a rough equivalent of FireBug or Chrome's Developer Tools.
Follow the instructions to add the JS include to your page and run your app. You should then be able to use the console.