w3c-geolocation Questions
9
Solved
I need JavaScript to display a manual entry if geolocation is declined.
What I have tried:
Modernizr.geolocation
navigator.geolocation
Neither describes if user has previously declined access t...
Armelda asked 23/5, 2011 at 2:55
3
Solved
The first method returns promise.
getCoordinates() {
return new Promise(function(resolve, reject) {
navigator.geolocation.getCurrentPosition(resolve, reject);
});
}
Returns the result of reve...
Messmate asked 14/8, 2018 at 13:57
2
Solved
We want to access the user's location using the Geolocation API.
This snippet works fine:
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition((position: GeolocationPosition) =>...
Cytaster asked 20/1, 2021 at 15:25
8
Solved
I am trying to access the HTML Geolocation API available in Android WebView (using SDK version 24).
The main problem is that the call to navigator.geolocation.getCurrentPosition() in JavaScript nev...
Disepalous asked 6/8, 2018 at 22:37
2
Is there any alternative to navigator.permissions.query Permissions API query to check geolocation permission.
cause its still in Working Draft and has less Browser compatibility.
W3C Permissions ...
Potence asked 12/10, 2018 at 17:34
1
I have a Chrome extension which uses the W3C Geolocation API to get the user's location. The extension is mostly used on Chromebooks.
I have noticed that the API seems to return the same coordinat...
Fulmis asked 25/10, 2018 at 8:23
5
Solved
I'm building a small script that clients will install on their page. Geolocation is not necessary for it, however if it exists it would be nice to have. Is there a way for me to check if the client...
Truss asked 9/4, 2012 at 18:7
1
Solved
navigator.geolocation.getCurrentPosition in cordova/android gives max 10 meter accuracy. I didn't use any plugin for geolocation. But some other apps shows 3 meter accuracy for the same place.
na...
Bacchae asked 22/2, 2018 at 10:44
3
Solved
Apart from setting a cookie the first time round, is there a way of detecting whether a user has already given permission for navigator.geolocation to return the lat/long of the browser?
If there...
Embattled asked 14/5, 2013 at 7:21
4
Solved
I'm developing an anti-theft software to get computers exact location. Notebooks with built-in gps are very rare in my country so I have to use HTML5 Geolocation in my application.
For Internet Ex...
Burglar asked 23/3, 2015 at 13:35
2
Solved
I need to determine the country (iso3) the device is in even if the user's device has GPS turned off and does not allow apps to access it's location.
I also need to account for tablets that have n...
Warnock asked 6/3, 2015 at 20:21
3
Solved
I've built the Geolocation API into my webapp and all browsers are working fine. Except Safari 8 and 7.1. The browser keeps asking for permission after allowing or not allowing it and ends up in an...
Rosena asked 26/11, 2014 at 13:27
3
I'm trying to use the HTML5 geolocation API; but I have problems to make it work on Firefox Chrome and Chromium :
init();
function init() {;
// Get the current location
getPosition();
}
func...
Quinsy asked 7/8, 2012 at 8:16
1
Okay, my code is below so I'll explain what I'm doing and what I'm getting for results.
I'm trying to grab the users location using navigator.geolocation.watchPosition. I've specified both a succe...
Banana asked 28/11, 2012 at 17:48
3
Solved
When trying to use the HTML5 geolocation api on mobile chrome for ios, my app throws a "Permission Denied" error without even prompting to share my location. Has anyone else run into this issue?
P...
Intussusception asked 16/7, 2012 at 16:43
1
Solved
When using the HTML5 geolocation API I get, apart from latitude and longitude, also the "accuracy of the location in meters". What exactly does that mean (meters is not a unit of accuracy)?
I ass...
Polynices asked 12/9, 2012 at 8:21
1
I'm using the Geolocation object and getCurrentPosition().
Have you seen that everytime you use getCurrentPosition Firefox and Chrome prompt these massages?
Chrome:
Example.com wants to track y...
Fire asked 9/2, 2012 at 22:5
1
© 2022 - 2024 — McMap. All rights reserved.