Comments (5)
A timeout errors means there isn't an acceptable GPS point available within the timeout period.
In my experience, this mostly happens when requesting for high accuracy positioning and the device location settings is set to GPS/Device only. When location mode is set to GPS only, it can take upwards of ~15 minutes before GPS information is available.
from cordova-plugin-geolocation.
@breautek Thanks for the reply
FYI We dint set location settings GPS alone
am i missing anything Please let me know.
Thanks
from cordova-plugin-geolocation.
I had the same error on a Xiaomi MIUI Android 11 device, and in my case strangely although you explicitly give location permission to the app, you still have to enforce that permission in Android Settings -> Location -> Toggle Location access
. That is, the error in this case was PositionError.TIMEOUT
and not PositionError.PERMISSION_DENIED
But thanks anyway for the tip @breautek cause it led me to the solution
from cordova-plugin-geolocation.
In my case it was also an issue with the GPS completely disabled in the phone. Thanks to @jfoclpf for this.
It would be amazing, if this plugin could detect if the GPD is completely disabled in the settings to we can actually notify the user about this. Is that already possible?
from cordova-plugin-geolocation.
It would be amazing, if this plugin could detect if the GPD is completely disabled in the settings to we can actually notify the user about this. Is that already possible?
Apache generally follows the W3C spec whenever possible or when it exists, and I don't believe that is part of the spec, so I don't think that would gain support. However, there is an existing third-party plugin available that does just that, take a look at the diagnostics. Just ensure you specify the modules that you need to avoid adding unneeded permissions.
from cordova-plugin-geolocation.
Related Issues (20)
- iOS 14: Infinite value in returned location data causes app crash HOT 2
- !important Android 12 new approximate location and precise location HOT 4
- IOS 15 Geolocation permission message issue. HOT 12
- iOS 15 - ionic app geolocation permission prompt message showing ionic://localhost HOT 2
- geolocation plugin is throwing an error on location request on electron (windows) platform
- [iOS] Location update are disabled after one kCLErrorLocationUnknown HOT 6
- Ionic - Position error:application does not have sufficient geolocation permission HOT 2
- GeoLocation permissions not being asked [SOLUTION] HOT 1
- [iOS permission bug] wrong logic in didChangeAuthorizationStatus hook, permission can be asked in some unexpected cases HOT 10
- [question android api 31 32] approximate access to geolocation for getCurrentLocation HOT 6
- Unable to fetch Location on VIVO Devices HOT 70
- iOS 16 CDVLocation.m throwing UI unresponsiveness warning in XCode - causing app to crash. HOT 7
- Next version release HOT 2
- Description String override in android as in iOS HOT 4
- this.geolocation.clearWatch is not a function HOT 1
- Android 33 issue when initializing HOT 3
- Geolocation working on android 13,14 even 8 but not on android 12 function does not call no error in console HOT 11
- Heading is set to NaN if speed is 0 or null. HOT 1
- Infinite loop onPause() -> onResume() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-geolocation.