I have a simple PhoneGap project that makes a cross-domain AJAX request, but when the app runs on the device nothing happens.
Locally testing the app in Chrome it works fine.
I've tried the PhoneGap remote debugger, but it's very slow.
Is there a JavaScript library that I can include with my project that will assist me in debugging my app while it's on the device?
I'd try running it in the Chrome browser on an android device and use remote web inspector or checkout this post about how to use remote web inspector on iOS actually right in PhoneGap
Related
I'm really new to developing an Android app using NativeScript Vue.
I'm struggling to understand what the debugging capabilities are. I have created a sample project using the template https://github.com/nativescript-vue/vue-cli-template) and have read about vue devtools. I'm wanting to put breakpoints in my JavaScript somewhere (in Chrome?) so I can step through my code, I just can't work out if this is possible?
Can anyone help?
Thanks
Did you try tns debug [ios|android]?
This will by default initiate a debugger with Chrome Dev Tools. You will see a URL in console once app is launched in your Simulator / Device, just have hit that with Chrome.
having an issue with Square POS Web API on Android.
We are trying to implement a kiosk app and the kiosk browser is Android based.
If run in Chrome browser the Square app loads fine with no error however if loaded in an Android browser (eg Dolphin) it fails with the following error.
Point of Sale API must be started with startActivityForResult() in the same task. It looks like the caller either used startActivity() or used startActivityForResult() from a finished activity or with the FLAG_ACTIVITY_NEW_TASK flag.
How can we fix this so the app can be used in kiosk apps that use android browser?
Square POS Web API only works with Chrome intents. Therefore you must use the Chrome browser with your Android device. We are in the process of updating our documentation to reflect this information, sorry for any confusion!
Ive got a bug that only shows up in mobile chrome browser on my iphone - iOS8. Whats odd is that the same bug doesn't show up in iOS8 safari on the same phone.
I want to debug the issue in the chrome browser but can only find info on debugging safari, is there a way to debug ios Chrome ?
To debug Chrome on iOS I use weinre and ngrok
Weinre will give you a local debugger on a local port
https://people.apache.org/~pmuellr/weinre/docs/latest/
ngrok creates a proxy to a port on you comp (point to weinre)
https://ngrok.com/
then change the weinre tag to the ngrok generated one and you will get logs and the DOM while debugging remotely
You could try to install 'Responsive Web Design Tester' extension in a Chrome browser in PC and test with the same iPhone model you have.
https://chrome.google.com/webstore/detail/responsive-web-design-tes/objclahbaimlfnbjdeobicmmlnbhamkg?hl=en
I have developed Lots of websites, where i use Developer tools on IE / firebug on Firefox & Chrome is also having inspect element function for Editing & Debugging. But When i started developing for Android/IOS browser i am not getting how to edit & debug.
Is there any way to do this coz, its eating lots of my effort.
weinre is exactely what you are looking for!
import the library into your index.html and make it point to your local weinre server or here and you'll have your device console into chrome.
pretty straight forward
You probably should use a remote debugger such as Pony or using Firefox.
You can also do this with Safari on IOS.
I'm trying to do what is simple in iOS, redirect from the browser to my app (I am authenticating via a website which then loads the url that switches back to my app via appreferencename:/) in Mango.
Is there a way to switch to an app from a browser via a link?
Thanks!
It's not possible, unfortunately. You are able to link to a marketplace page, but that's only useful if you want to download or update an app.
Open Windows Phone 7 App from URL