flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

[Question]: iOS background doesn't work (kCLErrorDomain error 1)

Open jupeng123 opened this issue 7 months ago • 9 comments

Please check the following before submitting a new issue.

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

jupeng123 avatar Jul 08 '24 10:07 jupeng123