flutter-geolocator
flutter-geolocator copied to clipboard
[Question]: iOS background doesn't work (kCLErrorDomain error 1)
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation.
Please select for which platform(s) you need help
- [ ] Android
- [X] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows
Your question
final locationSettings = AppleSettings( activityType: ActivityType.fitness, showBackgroundLocationIndicator: true, allowBackgroundLocationUpdates: true, );
final sub =
LocationUtils.getPositionStream(locationSettings: locationSettings).listen((event) {}, onError: (error) {
print('=======$error');
});
background is enable
info NSLocationAlwaysAndWhenInUseUsageDescription NSLocationAlwaysUsageDescription NSLocationWhenInUseUsageDescription
Flutter 3.19.5 Tools • Dart 3.3.3 • DevTools 2.31.1
Version
12