Skip to content

Commit

Permalink
temp user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
RingerJK committed Jan 25, 2023
1 parent 718975c commit f0b9964
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ object MapboxMetricsReporter : MetricsReporter {
fun init(
context: Context,
accessToken: String,
userAgent: 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))"
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)
Expand Down

0 comments on commit f0b9964

Please sign in to comment.