mapbox / mapbox/mapbox-maps-flutter

Programmatically opt-out of sending telemetry data

Open
#63 4 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

Is it possible to opt-out of sending [telemetry data](https://www.mapbox.com/telemetry) via code, e.g. to include this setting in the app settings? Currently the only way I'm finding is via the attribution button.

If it is not currently possible, are you planning to provide that option? When reading about telemetry on the Mapbox-Website it is being stated often that this should also be possible via settings in the app aside from the attribution button?

The Mapbox community Flutter plugin (originally the official [predecessor](https://github.com/mapbox/flutter-mapbox-gl) of this plugin) has this option: https://pub.dev/documentation/mapbox_gl/latest/mapbox_gl/MapboxMapController/setTelemetryEnabled.html

It also looks like both the native SDKs support the option to opt-out programmatically:
- Android: https://docs.mapbox.com/android/maps/api/10.10.1/mapbox-maps-android/com.mapbox.maps.module/-map-telemetry/set-user-telemetry-request-state.html
- iOS: https://docs.mapbox.com/help/getting-started/attribution/#mapbox-maps-sdk-for-ios ("Integrate the setting directly into your app. Hook a UISwitch control up to the MGLMapboxMetricsEnabled standard user defaults key, which should be true by default. Then set MGLMapboxMetricsEnabledSettingShownInApp to YES in your app’s Info.plist file.")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the Flutter plugin's controller API with the linked community plugin's setTelemetryEnabled method and the native Android and iOS telemetry controls. Confirm how each native SDK exposes the setting and define done as allowing the app to opt out programmatically on both platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.