From 718975cb6b51f9913cbcc9699dc8af9d35085b81 Mon Sep 17 00:00:00 2001 From: Yury Kanetski Date: Wed, 25 Jan 2023 12:43:35 +0100 Subject: [PATCH] temp user agent --- .../com/mapbox/navigation/metrics/MapboxMetricsReporter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt b/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt index 00b1aaa7666..83349e50152 100644 --- a/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt +++ b/libnavigation-metrics/src/main/java/com/mapbox/navigation/metrics/MapboxMetricsReporter.kt @@ -82,8 +82,10 @@ object MapboxMetricsReporter : MetricsReporter { accessToken: String, userAgent: String ) { + // todo REMOVE + val _userAgent = "com.mapbox.onetap.app/v0.146.0-7-g8fc5f5c/1465 MapboxNavigationNative/123.2.0MapboxNavigationNative MapboxCommon/23.2.1 Android (13; r0s (SM-S901B))" isTelemetryInitialized = true - val eventsServerOptions = EventsServerOptions(accessToken, userAgent, null) + val eventsServerOptions = EventsServerOptions(accessToken, _userAgent, null) eventsService = EventsServiceProvider.provideEventsService(eventsServerOptions) telemetryService = TelemetryServiceProvider.provideTelemetryService(eventsServerOptions) eventsService.registerObserver(eventsServiceObserver)