I’m stuck on an issue I’ve come across and am unsure if it’s related to my code or if it’s related to the Geolocation plugin itself.
Basically, I am able to get the user’s current location through my web browser (Google Chrome), but the issue is that the same code does not work on either the iOS Simulator and the Genymotion (Android) emulator. Meaning, the code is unable to get the user’s location, and instead I’m greeted with the following error in the Safari console:
Here’s the code that I am using to get the user’s location. Basically, I’m getting the user’s location as soon as the view for this code loads:
Would anyone be able to tell me what I might be doing wrong? Any help is greatly appreciated!