mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 05:19:42 +01:00
Fix flow
This commit is contained in:
parent
874ea309ac
commit
7c19919190
@ -155,9 +155,6 @@ struct IceCubesApp: App {
|
|||||||
|
|
||||||
private func refreshPushSubs() {
|
private func refreshPushSubs() {
|
||||||
PushNotifications.shared.requestPushNotifications()
|
PushNotifications.shared.requestPushNotifications()
|
||||||
Task {
|
|
||||||
await PushNotifications.shared.fetchSubscriptions(accounts: appAccountsManager.pushAccounts)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,6 +168,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
|
|||||||
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
|
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
|
||||||
PushNotifications.shared.pushToken = deviceToken
|
PushNotifications.shared.pushToken = deviceToken
|
||||||
Task {
|
Task {
|
||||||
|
await PushNotifications.shared.fetchSubscriptions(accounts: AppAccountsManager.shared.pushAccounts)
|
||||||
await PushNotifications.shared.updateSubscriptions(accounts: AppAccountsManager.shared.pushAccounts)
|
await PushNotifications.shared.updateSubscriptions(accounts: AppAccountsManager.shared.pushAccounts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user