Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-13 13:06:39 +02:00
parent 35253cded5
commit 9ad4259a5c
4 changed files with 28 additions and 1 deletions

View file

@ -236,6 +236,7 @@ internal class WalletModel @Inject constructor(
private fun subscribeOnPushNotificationsPermission() {
modelScope.launch {
val shouldAskNotificationPermissionsViaBs = notificationsRepository.shouldAskNotificationPermissionsViaBs()
val shouldShow = notificationsRepository.shouldShowSubscribeOnNotificationsAfterUpdate()
val isBiometricsEnabled = shouldSaveUserWalletsSyncUseCase()
val isHuaweiDevice = getIsHuaweiDeviceWithoutGoogleServicesUseCase()
@ -245,7 +246,13 @@ internal class WalletModel @Inject constructor(
"isHuaweiDevice $isHuaweiDevice",
)
if (!isBiometricsEnabled) return@launch
if (!shouldShow) return@launch
if (!shouldShow) {
return@launch
}
if (!shouldAskNotificationPermissionsViaBs) {
notificationsRepository.setShouldAskNotificationPermissionsViaBs(true)
return@launch
}
delay(timeMillis = 1_800)