I’m creating an app that needs to access the GPS location of the user on some occasions. I followed this tutorial, including the meta tag and permissions, but still get the following error:
I searched for the error message and it shows that this error occurs in chrome when the website is not served via HTTPS. Since I get the same error in the emulator and when debugging on the phone, I am not sure how to resolve this error when dealing with Ionic. I use Ionic 1.3.1.
Any help or hints are greatly appreciated, thanks!
Sorry, I don’t know how to fix the code. But as a consolation, I’ll tell you that you can see your ionic page correctly displayed with Firefox. Just do:
ionic build android
ionic serve
… and make sure you’re opening the URL with Firefox.
I was wondering if you were able to fix this issue? Looking at my app in Firefox works fine, but at some point one should be able to make the app work in the real device.