From 7805e0044152f2362159d1d1e1e8231ada7d547e Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 1 Oct 2018 16:02:50 -0600 Subject: [PATCH] work around multiple review's appearing --- Signal/src/ViewControllers/HomeView/HomeViewController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController.m b/Signal/src/ViewControllers/HomeView/HomeViewController.m index 7bad90f03..e6d0f471b 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewController.m @@ -1511,7 +1511,12 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations // In Debug this pops up *every* time, which is helpful, but annoying. // In Production this will pop up at most 3 times per 365 days. #ifndef DEBUG - [SKStoreReviewController requestReview]; + static dispatch_once_t onceToken; + // Despite `SKStoreReviewController` docs, some people have reported seeing the "request review" prompt + // repeatedly after first installation. Let's make sure it only happens at most once per launch. + dispatch_once(&onceToken, ^{ + [SKStoreReviewController requestReview]; + }); #endif } } else {