I'm guessing not, but I'm creating an app that gets the users coordinates using CLLocationManager, then passes the coordinates into Google maps to display directions. When the webpage opens to display, it requests the users location, and if the user says yes, it somehow affects some variables in my code. I was curious if the prompt from Google maps can be disabled, or if the coordinates that Google maps does take in can be retrieved by my app somewhere. I'm pretty sure neither are possible, just tossing it out there.
Asked
Active
Viewed 1,173 times
2 Answers
0
short answer. NO.
The location fetching in google maps app is done through JavaScript api more details here
if you can disable the javascript the map routing itself might not work so NO.
the part about retrieving variables, I think you can check the webview shouldStartLoadWithRequest and check the url, maybe that has some information you can fetch out.

Community
- 1
- 1

darshansonde
- 491
- 1
- 8
- 13
0
If anyone else needs it, here is an answer
let mapView = GMSMapView()
mapView.isMyLocationEnabled = false

Yevhenii
- 1
-
Hey @Yevhenii and welcome to Stack Overflow! Thanks for trying to answer this question here. Please do keep in mind that this question was asked a long time ago - back then there was no Google Maps app available for iOS yet, and hence they were asking how you can prevent that functionality on the web. – Peter Tutervai Oct 28 '20 at 19:03