My phonegap app is crashing randomly in some ios devices, not happening from phonegap client.
Is there a way to debug an installed ios app with a windows pc ?
Debug a Cordova app is a pain. Since the app is running inside a browser-like, all native debuggers are unuseful. In you specific case, I can suggest you to use Weinre, a remote tool able to show you something as the app is running and you can maybe catch the bug you're seeking.
You can start reading this link or this link and maybe google WEINRE.
Since your iOS app is crashing, most probably the issue will be with the Native Code.
BTW, you can try checking this tool - GapDebug
Related
I have developed a mobile app for IOS, Andriod and Windows devices. The application was developed with Phonegap.
I am running into a few issues while testing. Everything works perfect on Android, Windows and iPad, however once the app is on an iPhone 7 with operating system 11.2.5 there are a few "quirks". For instance select menus are self selecting and causing the app to crash. This only happens on the iPhone.
I am trying to debug this using weinre to debug, and I am unable to successfully get the iPhone to connect.
Is there options to see a console log, web inspector to find these errors?
Any help is greatly appreciated.
Phonegap serve and weinre.
Running both. I was able to pin point the issue..
Needed to update plugins.
Normally I'm a JEE guy but these days I'm working on a mobile app. I chose PhoneGap because there are not so many needs to UI and I thought this would be the easiest way to serve the app on many platforms.
I'm wondering if my setup is good and if it's possible to get console output when running on the device. I'm working on MacOS and iPhone6.
I installed PhoneGap and Cordova via npm and serving the files with phonegap serve.
For local debugging I'm using the chrome plugin "Ripple".
For debugging on the device I'm using the PhoneGap Developer App from the AppStore, together with weinre on my Laptop to get some debugging data. In weinre I can see everything except console outputs. Is this normal? Or any idea how I could get the console to weinre, too?
I also found some tutorials on the web using XCode and some native iPhone emulator but didn't get this working yet. Which way is the more preferable way of debugging on device?
You don't need any tool for debugging cordova app. For iOS just start the app in stimulator and start safari. In safari go to Develop > 'your pc name' > ios simulator.
http://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari--webdesign-8787
For Android run the app in your device and in the chrome go to http://chrome://inspect/#devices
Weinre is quite old and should not be be used anymore, instead, you want to use the remote debugging tools in your browser. For iOS, you can use Safari to debug your Cordova app. I've got a full article here, https://dzone.com/articles/overview-mobile-debugging, but the process involves doing one setting on your mobile device, and then simply opening up Safari and going to the debug menu. You can also do this with Chrome and Android apps.
Another option is GapDebug (https://www.genuitec.com/products/gapdebug/) which lets you do iOS and Android together in one Chrome tab.
I read in the post Is it possible to make a PhoneGap app for iOS without Mac? that it is possible to create a phonegap app for ios without a mac.
Therefore it should also be possible to do the same with a cordova app.
I am a bit confused because in the official documentation here it is written that such an app can just be created on a mac.
Is it possible to make a cordova CLI app for iOS without Mac on a windows machine?
Thanks,
David
its not possible to publish app to applestore without mac.
It is possible to build an IOS App as per this App without MAC article without using a MAC. There is another article on phoneGap website link here
Check it out.
Is there a way to debug the javaScript of a PhoneGap based iOS app within WebStorm while the app is running in the iOS emulator? The problem is that some of the events (like 'deviceready') need to be fired to enter certain code paths that I want to debug.
It is all described here in great detail:
http://www.tricedesigns.com/2013/01/18/my-workflow-for-developing-phonegap-applications/
It is a great article that every phonegap starter should read, as it describes how you can set up your development environment.
I have many options:
Phonegap simulator
iOS emulator remote debugger
remote debugging on the actual device
It won't integrate with webstorm but the debugging tools described above are much more powerful anyway.
I'm working on an app I want to host in iOS via Cordova (PhoneGap). I've run into some problem when I try to access the device.platform and device.version properties. I'm not sure what the problem is. Either way, I can't figure out how to peek into the code to get a better idea of what's going on.
I thought I could just fire up the .html in the desktop version of Safari, however, that didn't provide any insights. In short:
How do I debug code running inside of Cordova?
Any ideas why I can't just do a "alert(device.platform);"?
Thank you!
Since iOS 6 you can just enable the Develop menu in Safari and use Safari Web Inspector to remotely debug Cordova app in either iOS Simulator or USB attached devices. If you've used Chrome's debugger you'll feel right at home.
as well as Weinre, there is also iWebInspector which is useful and perhaps better on ios.
http://www.mobilexweb.com/blog/debugging-web-safari-phonegap-iphone-ipad
I think it maybe only applies to the simulator but thats fine for most cases anyway. It is more Xcode and iOs debugging solution in my opinion .
I use nifty debugging tool called Weinre, which is a lifesaver when debugging cordova( phonegap) apps. It basically is a remote debugging tool resembling usual webkit developer tools available in Chrome and some other browsers.
Make sure that Cordova is loaded before you try to call device.platform. Cordova is loaded when deviceready js event is triggered.