geolocator_apple

pub package Build status style: effective dart

The official iOS and macOS implementation of the geolocator plugin by Baseflow.

Usage

Since version 7.5.0 of the geolocator plugin this is the endorsed iOS and macOS implementation. This means it will automatically be added to your dependencies when you depend on geolocator: ^7.5.0 in your applications pubspec.yaml.

More detailed instructions on using the API can be found in the README.md of the geolocator package.

Maritime positioning

For location streams used on boats, including while anchored, select ActivityType.maritime:

final settings = AppleSettings(activityType: ActivityType.maritime);
final positions = GeolocatorApple().getPositionStream(locationSettings: settings);

This uses Core Location's maritime activity type when built with the iOS 27 or macOS 27 SDK (Xcode 27 or later) and running on that OS version or later. On older SDKs or operating systems, it falls back to ActivityType.otherNavigation. Existing activity types and the default activity type are unchanged.

Issues

Please file any issues, bugs or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us at hello@baseflow.com.

Want to contribute

If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.

Author

This Geolocator plugin for Flutter is developed by Baseflow.

Libraries

geolocator_apple