Skip to content

Commit

Permalink
Merge pull request #747 from Infomaniak/fix-notification-appgroup
Browse files Browse the repository at this point in the history
fix: Correctly update badge after receiving notification
  • Loading branch information
PhilippeWeidmann committed May 12, 2023
2 parents 634afe5 + b4ed924 commit 4af73c3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Infomaniak/ios-notifications",
"state" : {
"revision" : "0da8aa11e60766acaa62e34c84a8049eeb6e933f",
"version" : "2.0.1"
"revision" : "4609e33800a11f9f7acd38df66d1fbaaba0e60a8",
"version" : "2.1.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Mail/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
KeychainHelper(accessGroup: AccountManager.accessGroup)
}
let notificationService = Factory(type: InfomaniakNotifications.self) { _, _ in
InfomaniakNotifications()
InfomaniakNotifications(appGroup: AccountManager.appGroup)
}
let appLockHelper = Factory(type: AppLockHelper.self) { _, _ in
AppLockHelper()
Expand Down
2 changes: 1 addition & 1 deletion MailNotificationServiceExtension/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class NotificationService: UNNotificationServiceExtension {
KeychainHelper(accessGroup: AccountManager.accessGroup)
}
let notificationService = Factory(type: InfomaniakNotifications.self) { _, _ in
InfomaniakNotifications()
InfomaniakNotifications(appGroup: AccountManager.appGroup)
}

SimpleResolver.sharedResolver.store(factory: networkLoginService)
Expand Down
2 changes: 1 addition & 1 deletion Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let project = Project(name: "Mail",
.package(url: "https://github.com/Infomaniak/ios-dependency-injection", .upToNextMajor(from: "1.1.6")),
.package(url: "https://github.com/Infomaniak/ios-core", .revision("4c0c389de2e10e615ad79a854d2489977017efe5")),
.package(url: "https://github.com/Infomaniak/ios-core-ui", .upToNextMajor(from: "2.3.0")),
.package(url: "https://github.com/Infomaniak/ios-notifications", .upToNextMajor(from: "2.0.1")),
.package(url: "https://github.com/Infomaniak/ios-notifications", .upToNextMajor(from: "2.1.0")),
.package(url: "https://github.com/Infomaniak/ios-create-account", .upToNextMajor(from: "1.1.0")),
.package(url: "https://github.com/Infomaniak/ios-bug-tracker", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/ProxymanApp/atlantis", .upToNextMajor(from: "1.21.0")),
Expand Down

0 comments on commit 4af73c3

Please sign in to comment.