Force clearing push count

This commit is contained in:
Zhiyuan Zheng 2022-06-21 23:10:40 +02:00
parent 869524eb84
commit ca810065f8
1 changed files with 1 additions and 1 deletions

View File

@ -94,8 +94,8 @@ const pushUseConnect = ({ t, instances }: Params) => {
}, [expoToken, pushEnabled.length])
return useEffect(() => {
Notifications.setBadgeCountAsync(0)
if (expoToken && pushEnabled.length) {
Notifications.setBadgeCountAsync(0)
connect()
}
}, [expoToken, pushEnabled.length])