2

My Phonegap app leverages the (Cordova 3.8) webviews 'W3C Geolocation API'. Since upgrading from iOS 9.x to iOS 10 (beta) however, using

navigator.geolocation.getCurrentPosition(...)

now returns an error:

Access to geolocation was blocked over insecure connection to http://localhost. ERROR(2): Origin does not have permission to use Geolocation service

I do not currently use the Cordova Whitelist Plugin. Would using that help or is there a simpler fix?

joepegler
  • 103
  • 1
  • 9
  • I added the [geolocation plugin](https://github.com/apache/cordova-plugin-geolocation) instead of using the default Webview geolocation API. – joepegler Sep 09 '16 at 15:52
  • If you are using the phonegap developer app to test, read my answer here http://stackoverflow.com/a/39768646/1351469. It's about Ionic, but the problem is the same – jcesarmobile Sep 29 '16 at 18:16

1 Answers1

1

I added the geolocation plugin instead of using the default Webview geolocation API

joepegler
  • 103
  • 1
  • 9