Trying out the geolocation of the phonegap. I noticed that it just keeps trying to get location if you don't put a timeout. Wifi and all configurations is fine. There was nothing wrong with the code so I tried to restart the device and it is now working.
What is causing this to happen and how do you prevent this bug?
Phonegap version and device: 2.5.0 and samsung s4 4.2.2
sample code in phonegap docs was used (documentation code sample link).
Thanks.
Related
I've been working on a flutter web app recently using firebase hosting, and it was working fine until last night. Specifically, the site loads but the interface does not react to user input only on iphone iOS. (i.e. it works properly on ios ipad)
I tried a variety of things to figure out where the problem lies:
downgraded flutter channel master -> dev + stable (currently using
dev, but first noticed on master)
created numerous projects on firebase to host these site.
reinstalled firebase-tool CLI
tested on a variety of devices
The easiest way I could recreate this is by creating the following website using the default app created by "flutter create", then performing firebase init, creating a project and then deploying the site. Here it is:
hostingweirdness.firebaseapp.com
also
hostingweirdness.web.app
What I'm seeing is that the site works perfectly for:
desktop browsers (chrome,firefox)
android browsers (chrome),
ipad safari
However, the blue "+" button is unresponsive for:
iphone (safari and chrome)
ipad chrome.
I'd also like to note that I'm able to see the same thing using the iphone simulator for Xcode: works for iphone, not for ipad.
Could you test those sites with your devices and see if you're getting the same thing?
Any ideas what it might be, or other ideas for troubleshooting?
Any ideas who I can contact to submit a bug report? I'm leaning towards a flutter issue since it's in beta, but changing the channel made no difference, and the fact that it happened all of a sudden makes me think that there could be other culprits.
This was, indeed, a bug. It's been addressed as of April 13th per this issue here:
https://github.com/flutter/flutter/issues/54269
and they merged the code into flutter here:
https://github.com/flutter/engine/pull/17595
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.
In the React Native documentation (0.40) "Running on Device" for iOS on MacOS, it suggests using adb reverse to connect to the development server over USB. This method is, in fact, the recommended method.
I understand this works for Android, but I wasn't aware it would work for iOS devices. Whenever I try adb reverse tcp:8081 tcp:8081 as per the docs, it gives me error: no devices/emulators found.
After searching on Google for using adb with iOS/iPhone, I wasn't getting anything. I also didn't find anything on React Native's issues regarding it, and Stack Overflow's closest thread is related to debugging with adb, not running React Native (or iOS generally) through USB using adb.
Does anyone have any experience using this method successfully?
As mentioned in comment by jcaron, there was an issue in the doc, adb is Android specific.
A pull request was sent and accepted a few days ago.
The changes are already reflected in the next version: http://facebook.github.io/react-native/releases/next/docs/running-on-device.html
Since iOS 10 came out and I updated my iPhone 6 navigator.geolocation.getCurrentPosition() is not working.
Address and port: 192.168.0.16:8100
Since geolocation API is considered as unsecured origin it would work only with SSL but can I do it in a Hybrid application where I don't know what will be the address on each phone?
I've already tried what's mentioned here: Geolocation is blocked in iOS10
Editing in XCode was not helping
Editing the Info.plist in text editor was not helping
I have Cordova White List plugin istalled and I'm using this not recommended wildcard in my config.xml: <allow-navigation href="*"/> .
It works fine on android and was working fine on iPhone 6 before the iOS update.
The problem is you are using live reload, when you use live reload the app code is served from a local web server on your computer using http:// protocol.
If you don't use live reload the code will be loaded from inside your app using file:// protocol and geolocation will work.
Consider sending a bug report to ionic so they maybe can change the local server to serve the code through https
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.