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
Related
I have this strange behaviour:
I implemented a single page application using Vue.js.
This application is deployed on a remote service and it will be loaded into a mobile web-view (just using the url of the service)
This works fine on iOS and Android.
Only on a iOS device, using iOS 12.x version, the application is not loaded: I see a white page and I immediately receive a didFInishLoading callback.
I'm not able to understand the causes.
What can I do to understand the error?
Searching on the web I'm reading that the WKWebView on iOS 12 doesn't support javascript ES6. Could be this the reason?
We set up universal links that work on android but don’t work on iOS when using Safari as the main browser. However, when we tested on Chrome it did work. Is this a known issue
Question: Is it possible to have Android Kitkat version webview (chromium) on Android 9?
Problem: I have some webpages and I want to show them in webview but the webpages are developed using old technologies like appCache and application Manifest.
The webpages are hosted on a hardware based custom control system which has low specs and the server on the control system does not support https so we cannot move to technologies like service workers.
These webpages works properly on tablet having android 4.4 kitkat. So that's why I am asking about any possibility of integrating kitkat webview (chromium) in Android 9
I tried to use crosswalk webview, it worked but when compiled through old sdk version 23 but crosswalk not compiles on latest android sdk's like 29 and 30
No,it's not possible but you can do one thing that instead of serving a webpage via http or https in your app you can serve a local file to that webview.To do so :-
Method 1
create assets folder.
create your files in that folder like index.html,style.css .
set Webview url to "file:///android_asset/index.html"
It's done.
Method 2
Use Cordova to do so.
I am going to develop a web app using angular and google web API. I am curious if it can be run also on iOS? Are there any thing which are different from that run on Android I need to pay attentions when develop the app?
thanks
Safari has added support for PWA from IOS 11.3. If you are using previous versions of Safari. IT won't work. From IOS 11.3, It supports these 3 features
Web App Manifest
Service Worker
Cache API
Adding to Home screen is not yet supported.
Here is the comparsion for PWA between Chrome and Safari. https://medium.com/#firt/progressive-web-apps-on-ios-are-here-d00430dee3a7
upon running my app in ios9 simulator, i get app transport security related issues because some of my urls are not using https. I tried it in an ipad with ios9 and its working fine.
Upon release of ios9, should I expect my live app (sdk 8) to fail on ios9 devices? Just making sure if late appstore updates are safe.
Thanks!
Reference
If you’re developing a new app, you should use HTTPS exclusively. If you have an existing app, you should use HTTPS as much as you can right now, and create a plan for migrating the rest of your app as soon as possible. In addition, your communication through higher-level APIs needs to be encrypted using TLS version 1.2 with forward secrecy. If you try to make a connection that doesn't follow this requirement, an error is thrown. If your app needs to make a request to an insecure domain, you have to specify this domain in your app's Info.plist file.
I have written a summary and ways to how to check Acceptability of Webservice for iOS 9's App transport security
https://medium.com/#Mrugraj/app-transport-security-b7910c4fc70f
It have two ways
Using Curl
$ curl -v https://github.com/
Trying 192.30.252.130...
Using online tool like - https://www.ssllabs.com/ssltest/index.html