mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 09:41:02 +00:00
Fix flow
This commit is contained in:
parent
874ea309ac
commit
7c19919190
1 changed files with 1 additions and 3 deletions
|
@ -155,9 +155,6 @@ struct IceCubesApp: App {
|
|||
|
||||
private func refreshPushSubs() {
|
||||
PushNotifications.shared.requestPushNotifications()
|
||||
Task {
|
||||
await PushNotifications.shared.fetchSubscriptions(accounts: appAccountsManager.pushAccounts)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -171,6 +168,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
|
|||
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
|
||||
PushNotifications.shared.pushToken = deviceToken
|
||||
Task {
|
||||
await PushNotifications.shared.fetchSubscriptions(accounts: AppAccountsManager.shared.pushAccounts)
|
||||
await PushNotifications.shared.updateSubscriptions(accounts: AppAccountsManager.shared.pushAccounts)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue