Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-12 16:50:29 +03:00
parent f72cc0d77a
commit d7cec0764e
3 changed files with 11 additions and 2 deletions

View file

@ -26,6 +26,15 @@ sealed class PushNotificationAnalyticEvents(
),
)
data class ButtonLater(
val source: AnalyticsParam.ScreensSources,
) : PushNotificationAnalyticEvents(
event = "Button - Later",
params = mapOf(
AnalyticsParam.SOURCE to source.value,
),
)
data class PermissionStatus(
val isAllowed: Boolean,
) : PushNotificationAnalyticEvents(

View file

@ -30,7 +30,7 @@ internal class PushNotificationViewModel @Inject constructor(
override fun onNeverRequest() {
analyticHandler.send(
PushNotificationAnalyticEvents.ButtonCancel(AnalyticsParam.ScreensSources.Stories),
PushNotificationAnalyticEvents.ButtonLater(AnalyticsParam.ScreensSources.Stories),
)
viewModelScope.launch {
neverRequestPermissionUseCase(PUSH_PERMISSION)

View file

@ -38,7 +38,7 @@ internal class WalletPushPermissionClickIntentsImplementor @Inject constructor(
if (isUserDismissedDialog != isUserDismissed) return
viewModelScope.launch {
analyticsEventHandler.send(
PushNotificationAnalyticEvents.ButtonCancel(AnalyticsParam.ScreensSources.Main),
PushNotificationAnalyticEvents.ButtonLater(AnalyticsParam.ScreensSources.Main),
)
neverRequestPermissionUseCase(PUSH_PERMISSION)
}