diff --git a/kDrive/AppDelegate+Launch.swift b/kDrive/AppDelegate+Launch.swift index 5ada1838f8..6bb6d184e7 100644 --- a/kDrive/AppDelegate+Launch.swift +++ b/kDrive/AppDelegate+Launch.swift @@ -142,6 +142,7 @@ extension AppDelegate { private func requestAppStoreReview() { MatomoUtils.track(eventWithCategory: .appReview, name: "like") + UserDefaults.shared.appReview = .readyForReview reviewManager.requestReview() } @@ -150,6 +151,7 @@ extension AppDelegate { guard let url = URL(string: KDriveResourcesStrings.Localizable.urlUserReportiOS) else { return } + UserDefaults.shared.appReview = .feedback UIApplication.shared.open(url) } diff --git a/kDriveCore/DI/FactoryService.swift b/kDriveCore/DI/FactoryService.swift index 0c5f85537b..a8ab642a52 100644 --- a/kDriveCore/DI/FactoryService.swift +++ b/kDriveCore/DI/FactoryService.swift @@ -137,7 +137,7 @@ public enum FactoryService { BackgroundTasksService() }, Factory(type: ReviewManageable.self) { _, _ in - ReviewManager(userDefaults: UserDefaults.shared, openingBeforeReview: 3) + ReviewManager(userDefaults: UserDefaults.shared) } ] return services