Location service not working with UIWebView in iOS10

My UIWebView application uses the location service via HTML5. It works fine under iOS 10. When you first launch the application and go to webView, a warning appears that asks to use the Location Service system. With your permission, UIWebView works. Everything feels amazing.

However, when I installed the application on a device running iOS10, a warning does not appear. And UIWebView shows an error. I can’t even find location settings in the Settings app.

Does any body have the same problem? Or can someone tell me what happened? Any key would be appreciated.

+4
source share
3 answers

I cannot find anything specific for UIWebView, however I saw that Apple now blocks geolocation API calls on insecure pages.

Web API

API geolocation API blocking on pages served by insecure connections will begin

See Release Notes

I suspect your problem is related to this.

+2
source

I think you forgot to add privacy keys to your info.plist application.

You can find the information in the iOS10 update guide.

enter image description here

+1
source

- , , iOS 8 NSLocationWhenInUseUsageDescription plist.

, .

0
source

Source: https://habr.com/ru/post/1655567/


All Articles