flutter_map_location_marker icon indicating copy to clipboard operation
flutter_map_location_marker copied to clipboard

Unhandled kCLErrorDomain error 1 on permission change

Open Mordtimer opened this issue 6 months ago • 3 comments

Describe the bug Unhandled kCLErrorDomain error 1 cannot be handled properly when user change system permission when stream subscription is active. The same issue occures when I use CurrentLocationLayer() without giving it custom positionStream.

To Reproduce

Bad behaviour (https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/default_stream_example.dart):

LocationMarkerDataStreamFactory().fromGeolocatorPositionStream().asBroadcastStream().listen(
            (el) => print(el.toString()),
      )
        ..onError((err) {
          print(err.toString());
        });

Proper behaviour with different stream:

          Geolocator.getPositionStream().listen(
            (el) => print(el.toString()),
          )..onError((err) {
            print(err.toString());
          });

Expected behavior The error should be catchable using onError(), just like in a direct stream from Geolocator

Smartphone:

  • iPhone13
  • OS: iOS 18.5

Mordtimer avatar Jun 12 '25 13:06 Mordtimer

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jul 13 '25 10:07 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 14 '25 10:08 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Aug 22 '25 10:08 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 22 '25 10:11 github-actions[bot]