I have a page that contains a code that gets current location from the device and load other stuff based on the location with this code:
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(successFunction);
} else {
// Make API call to the GeoIP services
}
It works on all android devices which I tested, but in iOS and macOS, It's not working. Neither if
nor else
. Seems like it stuck at getting current location.
Any help?
from JS current location not works in iOS
No comments:
Post a Comment