mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/15537 - Be more verbose about leanplum identifiers (https://github.com/mozilla-mobile/fenix/pull/15538)
This commit is contained in:
parent
192e5dc063
commit
a0c00cb3b4
@ -105,6 +105,8 @@ class LeanplumMetricsService(
|
|||||||
|
|
||||||
if (!application.settings().isMarketingTelemetryEnabled) return
|
if (!application.settings().isMarketingTelemetryEnabled) return
|
||||||
|
|
||||||
|
Log.i(LOGTAG, "Starting Leanplum with device id: $deviceId")
|
||||||
|
|
||||||
Leanplum.setIsTestModeEnabled(false)
|
Leanplum.setIsTestModeEnabled(false)
|
||||||
Leanplum.setApplicationContext(application)
|
Leanplum.setApplicationContext(application)
|
||||||
Leanplum.setDeviceId(deviceId)
|
Leanplum.setDeviceId(deviceId)
|
||||||
@ -171,6 +173,8 @@ class LeanplumMetricsService(
|
|||||||
LeanplumInternal.setCalledStart(true)
|
LeanplumInternal.setCalledStart(true)
|
||||||
LeanplumInternal.setHasStarted(true)
|
LeanplumInternal.setHasStarted(true)
|
||||||
LeanplumInternal.setStartedInBackground(true)
|
LeanplumInternal.setStartedInBackground(true)
|
||||||
|
Log.i(LOGTAG, "Started Leanplum with deviceId ${Leanplum.getDeviceId()}" +
|
||||||
|
" and userId ${Leanplum.getUserId()}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -185,6 +189,9 @@ class LeanplumMetricsService(
|
|||||||
// We compare the local Leanplum device ID against the "uid" query parameter and only
|
// We compare the local Leanplum device ID against the "uid" query parameter and only
|
||||||
// accept deep links where both values match.
|
// accept deep links where both values match.
|
||||||
val uid = deepLink.getQueryParameter("uid")
|
val uid = deepLink.getQueryParameter("uid")
|
||||||
|
if (uid != deviceId) {
|
||||||
|
Log.i(LOGTAG, "Rejecting Leanplum deep link because uid $uid does not match $deviceId")
|
||||||
|
}
|
||||||
return uid == deviceId
|
return uid == deviceId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user