Home » Javascript » Bypassing mock geolocation using javascript

Bypassing mock geolocation using javascript

Posted by: admin June 30, 2018 Leave a comment

Questions:

I am working on a web application which detects the user geolocation using google maps api for javascript (https://developers.google.com/maps/documentation/javascript/examples/map-geolocation)
It is working fine, except where user has enabled mock location on his device.

Is there a way that google maps api bypasses the mock location and returns actual geolocation of the user?

Answers: