mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Telemetry Settings cannot be changed programmatically

Open stolzda opened this issue 3 years ago • 2 comments

Platform: Android Mapbox SDK version: 10.0.0

Note

This is a crosspost of https://github.com/mapbox/mapbox-maps-android/issues/772 because I don't know which is the right repository to post this issue.

Steps to trigger behavior

By default, telemetry seems to be enabled. We would like to integrate the settings into the app overall settings, and toggle the settings from there, which it seems it was possible, see:

mapbox/mapbox-gl-native#13304 mapbox/mapbox-gl-native-android#90 (comment)

These functions are not exposed anymore. With some digging I found the following:

val telemetry = mapView.getPlugin<AttributionPlugin>(Plugin.MAPBOX_ATTRIBUTION_PLUGIN_ID)!!
	.getMapAttributionDelegate().telemetry()
telemetry.disableTelemetrySession()
telemetry.setUserTelemetryRequestState(false)

Expected behavior

Telemetry is disabled, MapboxTelemetryService is stopped.

Actual behavior

MapboxTelemetryService keeps running, and neither seems the Telemetry to be disabled.

stolzda avatar Oct 26 '21 09:10 stolzda

I have the same problem

RafaelPena31 avatar Nov 17 '21 19:11 RafaelPena31

Any updates on this?

fabian-kotschenreuther avatar Oct 25 '22 11:10 fabian-kotschenreuther