Comments (9)
Dear @prasad-rawas-volofleet,
It looks like this happens when the used has denied app access. Please take a look at: (https://stackoverflow.com/questions/29350245/the-operation-couldn-t-be-completed-kclerrordomain-error-1)
Kind regards,
from flutter-geolocator.
@TimHoogstrate I still got this error in read device . When i change permission from never to while using the app.
from flutter-geolocator.
Hi @namvt8,
The error indicates that the location services are disabled and is not related to the permissions provided. Can you please verify this in the settings of the iOS device: Settings > Privacy > Location Services > Your App
Location services should be enabled.
from flutter-geolocator.
I encountered the same problem here. https://forums.developer.apple.com/forums/thread/735929
Is there any way to solve this problem?
from flutter-geolocator.
Please see the error below.
from flutter-geolocator.
Hi @namvt8,
The screenshot only shows that the application has permission to access the device's location. However the error indicates that the "Location Services" of the device are disabled. Since these settings are device wide, the error will occur in all apps that use location services (as mentioned in the post you linked).
Can you please verify these are enabled? You can do this in iOS by going to:
"Settings" > "Privacy & Security" > "Location Services" and then make sure the switch turned on (see attached screenshot).
The geolocator plugin also supports validating if the location services are enables or not, to do so simply call the Geolocator.isLocationServiceEnabled()
method:
// Test if location services are enabled.
bool serviceEnabled = await Geolocator.isLocationServiceEnabled();
if (!serviceEnabled) {
// Location services are not enabled don't continue
// accessing the position and request users of the
// App to enable the location services.
return Future.error('Location services are disabled.');
}
// Location services are enabled, it is safe to request the location.
...
A more complete example can be found in the plugins README.md file.
from flutter-geolocator.
Thank you very much. This problem seems of Apple. I tried the native code but still get the same error.
from flutter-geolocator.
Did you try another iOS device?
I have several iPhones and no problems at all. It is possible that there is some hardware problem on this particular device.
I will go ahead and close this issue for now. If you have any questions feel free to leave a comment.
from flutter-geolocator.
I tried it on iPhone 7, 8, 13, 14. All are the same.
Thank you. Now, I have no questions.
from flutter-geolocator.
Related Issues (20)
- [Bug]: requestPermission() returns LocationPermission.always but checkPermission() LocationPermission.denied HOT 2
- [Regression]: ERROR WHILE ADD PACKAGE IN PUB FILE HOT 1
- [Bug]: HOT 3
- [Bug]: kCLErrorDomain error 1. on Background (BYPASS_PERMISSION_LOCATION_ALWAYS=1 not working) HOT 1
- [Bug]: Min API version should not be bumped to 34 until Sept 1 HOT 5
- Privacy manifest file in gelocator_apple 2.3.7 and update status of geolocator plugin HOT 2
- [Bug]: Subscribe to getServiceStatusStream throw an exception on Android 14 HOT 12
- [Feature Request]: Reading altitude from NMEA messages not only from the GPS system HOT 1
- [Bug]: foreground service seems to be missing `FOREGROUND_SERVICE_LOCATION` permission
- [Bug]: If you flush the permission dialog, it returns LocationPermission.deniedForever HOT 1
- [Bug]: Location update evnets are delivered in batches and out of order on Android HOT 2
- [Bug]: The error is that the permission popup reappears when the screen is turned off on iOS. HOT 1
- [Bug]: `satelliteCount` and `satellitesUsedInFix` always 0 HOT 4
- [Bug]: F-droid builds fail because of google service dependencies HOT 5
- [Bug]: Frequent Location Updates Despite 10-Meter Distance Filter on Android 9 HOT 2
- getServiceStatusStream only listen when I enter the app on IOS
- getPositionStream gets cancel when an error occurred even when cancelOnError=false
- [Bug]: ANR triggered by thread waiting for a binder transaction
- [Bug]: getServiceStream only works when enable the Location Service on IOS
- [Question]: How to be smoother when i'm displaying my marker in driver mode?
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 flutter-geolocator.