mapbox / mapbox/mapbox-maps-android

Telemetry settings dialog always implies user is opted in

Open
#1,872 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Android OS version: Any
- Devices affected: Any
- Maps SDK Version: 10.9.1

## Observed behavior and steps to reproduce

If you click disagree on the Telemetry settings so Telemetry is supposedly disabled, then go back into the screen the popup shows a message indicating that you are still opted in.

Mapbox Demo app from Play Store
![image](https://user-images.githubusercontent.com/20557626/204340706-39d1f691-de2c-414c-b346-5f1e917b28ee.png)

## Expected behavior

If the user has clicked disagree, and re-enters the dialog it _shouldn't_ still show they are opted in and... 'are helping to make OpenStreetMap and Mapbox maps better by contributing anonymous usage data.'

## Notes

The lack of programmatic access to the Telemetry settings means developers cannot provide their own mechanism/dialog #772 disappointing coming from v9.

[Strings in Telemetry](https://github.com/mapbox/mapbox-maps-android/blob/9d4b590faca14c8626b58492dfb7e79a0d5bc336/plugin-attribution/src/main/res/values/strings.xml
) contains nothing to show for when its opted out.

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 with plugin-attribution/src/main/res/values/strings.xml and trace the telemetry settings dialog that displays those strings. Reproduce the disagree-then-reopen flow in the Mapbox Demo app, then verify that the reopened dialog no longer says the user is contributing anonymous usage data when opted out.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.