The problem
Ratings show up next to your app in search results, and Apple lists ratings and reviews among the user behaviour signals that feed App Store search ranking. Most happy users never rate on their own. The system prompt fixes that, but you only get three chances a year per person, you never learn whether the prompt appeared, and a badly timed ask can produce exactly the rating you did not want.
This page covers the API on current iOS, the limits the system enforces, how to decide when to ask, the manual review link, and what to do with reviews once they arrive.
The API
SwiftUI: requestReview
The current API is RequestReviewAction, available from iOS 16 and iPadOS 16. You read it from the environment as \.requestReview and call it like a function. It is @MainActor, so call it from the main actor, which a SwiftUI view already is.
UIKit: AppStore.requestReview(in:)
From UIKit, call AppStore.requestReview(in:) with the current UIWindowScene. It is also iOS 16 and later.
import StoreKit
import UIKit
final class ExportViewController: UIViewController {
func exportDidFinish() {
guard let scene = view.window?.windowScene else { return }
AppStore.requestReview(in: scene)
}
}
The old one
SKStoreReviewController is deprecated as of iOS 18, with Apple pointing to RequestReviewAction. If your deployment target is iOS 16 or later, you never need it. If you still support iOS 15, keep SKStoreReviewController.requestReview(in:) behind an availability check for those users only.
What the system enforces
Apple’s documentation for RequestReviewAction spells out the rules:
- If the person has not rated or reviewed your app on this device, the prompt appears at most three times within a 365-day period.
- If the person has rated or reviewed on this device, the prompt can appear again only if the app version is new and more than 365 days have passed since their previous review.
- People can turn off review prompts for all apps.
- The call may show nothing, and you get no result either way. So do not call it in response to a button tap or any other user action, because the button might do nothing.
- In development the prompt always appears, so you can check the UI. In TestFlight it has no effect.
Antoine van der Lee makes the same point in his SwiftLee article: you cannot tell whether the prompt showed, whether the user rated, or whether they tapped Not Now. Natalia Panferova at Nil Coalescing draws the conclusion that matters for code: since you cannot detect a successful prompt, the only sensible bookkeeping is “asked once for this version”.
When to ask
Apple’s Human Interface Guidelines give four rules: ask only after people have shown engagement, never on first launch or during onboarding, never in the middle of a task, and do not pester. The HIG suggests leaving at least a week or two between requests. Apple’s sample code adds that you should not ask immediately at launch even on later launches.
Community writers agree on the shape and differ on the details.
- Antoine van der Lee gates the prompt on an install at least seven days old, a minimum number of sessions, a minimum number of significant events, and one prompt per version. He then waits about two seconds and cancels the request if the user touches anything in that time.
- Tim Jones, writing for AppTweak from his time running ASO at Keepsafe, targets activated users: people who have reached the app’s core value. He would rather ask soon after activation, before users churn, than wait for a calendar date. At Keepsafe the second and third prompts came two weeks after the previous one.
- Ariel Michaeli at Appfigures adds a moment most developers miss: right after a support conversation that went well.
Where they differ is the fixed waiting period. A seven-day minimum protects you from asking someone who installed by accident; an activation trigger catches people at their happiest. This article recommends the activation trigger plus a short floor (a few days), because a calendar rule alone asks people who have not yet seen the app’s value and misses power users who got there on day one.
Good moments
- A document exported, a workout logged, a level finished, a budget closed for the month.
- The fourth or fifth time someone completes the core action.
- After a support thread you resolved.
Bad moments
- First launch, onboarding, the paywall, any error screen.
- Right after an update that changed something people relied on.
- In the middle of a flow, or as the result of tapping a button.
A small gate
This is a minimal version of the pattern Apple’s sample and the community describe. It counts completed core actions, enforces a floor on install age, and records the version it asked for. It uses UserDefaults; any store works.
import Foundation
struct ReviewGate {
private let defaults: UserDefaults
private let minimumDays = 3
private let minimumCompletions = 4
init(defaults: UserDefaults = .standard) {
self.defaults = defaults
if defaults.object(forKey: Key.firstLaunch) == nil {
defaults.set(Date.now, forKey: Key.firstLaunch)
}
}
func recordCompletion() {
defaults.set(defaults.integer(forKey: Key.completions) + 1, forKey: Key.completions)
}
var shouldAsk: Bool {
guard let firstLaunch = defaults.object(forKey: Key.firstLaunch) as? Date else { return false }
let days = Calendar.current.dateComponents([.day], from: firstLaunch, to: .now).day ?? 0
return days >= minimumDays
&& defaults.integer(forKey: Key.completions) >= minimumCompletions
&& defaults.string(forKey: Key.lastAskedVersion) != currentVersion
}
func markAsked() {
defaults.set(currentVersion, forKey: Key.lastAskedVersion)
}
private var currentVersion: String {
Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "unknown"
}
private enum Key {
static let firstLaunch = "reviewGate.firstLaunch"
static let completions = "reviewGate.completions"
static let lastAskedVersion = "reviewGate.lastAskedVersion"
}
}
The view that appears after the core action records the completion and asks after a pause. .task is cancelled when the view goes away, so if the person moves on within two seconds, no request is made. That gives you the cancel-on-interaction behaviour Antoine describes without extra code.
import StoreKit
import SwiftUI
struct ExportFinishedView: View {
@Environment(\.requestReview) private var requestReview
let gate: ReviewGate
var body: some View {
ContentUnavailableView("Export complete", systemImage: "checkmark.circle")
.task {
gate.recordCompletion()
guard gate.shouldAsk else { return }
try? await Task.sleep(for: .seconds(2))
guard !Task.isCancelled else { return }
gate.markAsked()
requestReview()
}
}
}
ContentUnavailableView needs iOS 17, which matches this article’s platforms; the review action itself needs iOS 16.
A review link people can tap
The system prompt is for you to trigger. People who want to review on their own need a link, and Apple’s documentation for RequestReviewAction suggests a persistent one in Settings. Append action=write-review to your product page URL and it opens straight to the review sheet. Replace the ID with your own, which is in your app’s App Store URL.
import SwiftUI
struct RateRow: View {
private let writeReviewURL = URL(string: "https://apps.apple.com/app/id0000000000?action=write-review")!
var body: some View {
Link(destination: writeReviewURL) {
Label("Rate on the App Store", systemImage: "star")
}
}
}
This is the right place for a button, because it always works.
What you may not do
- Custom review prompts. Guideline 5.6.1 tells you to use the provided API and says Apple will disallow custom review prompts. That includes your own star picker that forwards high scores to the App Store.
- Gating features on a review. Guideline 3.2.2(x) forbids forcing people to rate or review to use the app.
- Paying for ratings. The introduction to section 3 of the guidelines warns that manipulating reviews with paid, incentivized, filtered or fake feedback can get you removed from the Developer Program.
Ariel describes an approach some games use that stays inside these rules: give a reward first, with no strings attached, and ask afterwards when the player is pleased. The reward must not depend on rating.
A common workaround is a “Are you enjoying the app?” screen that sends happy users to the system prompt and unhappy ones to a feedback form. It is a filter in front of the rating flow, which is close to what section 3 calls filtered feedback. This article recommends against it. Put a support link in Settings so unhappy users can reach you without a pre-prompt.
Replying to reviews
Apple’s ratings and reviews page covers the workflow:
- Anyone with the Admin or Customer Support role can reply in App Store Connect, to any review, however old.
- The reviewer is notified and can update their review. Many do.
- You can edit a reply at any time; only the latest version shows.
- If you cannot reply to everything, start with the lowest-rated reviews and those about bugs.
- After a fix ships, mention it in release notes and reply to the reviews that reported it.
- For download or billing problems, point people to Apple Support.
- For spam or offensive reviews, use Report a Concern instead of replying.
Guideline 5.6.1 sets the tone: respectful, about the user’s comment, with no personal information, spam or marketing.
Resetting your rating
When you release a new version you can reset the summary rating. The App Store Connect help page gives the details:
- You tick Reset rating when this version is released on the version page before you submit. Admin or App Manager role required.
- The reset applies to all countries and regions at once; you cannot reset one country.
- It happens when that version is released and cannot be undone afterwards.
- Written reviews stay on the product page.
- The product page shows a message that the rating was recently reset until enough people rate the new version.
Both Apple’s ratings page and the HIG warn that fewer ratings can discourage downloads. Reset only when the old rating reflects a problem the new version fixes, and plan to ask for ratings soon after the release.
Checking it worked
You cannot measure the prompt itself, so measure what follows. Antoine suggests comparing how often you call the API with how many ratings arrive, and watching whether low ratings grow. Apple keeps your summary rating per territory, so look at your main markets one by one. If ratings stay flat after a release that should have prompted many people, your gate is probably too strict, or the moment never happens for most users.
The ceiling is real. Ariel reports that Miniclip’s 8 Ball Pool went from 217 new ratings a day to an average of 9,818 after it started asking, and Tim Jones reports that Instagram doubled its total ratings within a week of adding the prompt. Those are large apps, but the mechanism is the same for yours.
Checklist
| Item | Rule |
|---|---|
| API | requestReview in SwiftUI or AppStore.requestReview(in:), iOS 16+ |
| Old API | SKStoreReviewController, deprecated in iOS 18 |
| Limit | Three prompts per person in 365 days, enforced by the system |
| Trigger | After a completed core action, never at launch or from a button |
| Bookkeeping | Once per app version; you cannot detect whether it showed |
| TestFlight | Prompt does not appear; test in a development build |
| Manual link | action=write-review on your product page URL, in Settings |
| Forbidden | Custom prompts (5.6.1), forced reviews (3.2.2), incentivized reviews |
| Replies | Admin or Customer Support; lowest ratings and bugs first |
| Reset | All regions at once, irreversible, written reviews remain |
Sources and further reading
- RequestReviewAction Apple Developer Documentation
- Requesting App Store reviews Apple Developer Documentation
- SKStoreReviewController Apple Developer Documentation
- Ratings and reviews Apple Human Interface Guidelines
- Ratings, reviews, and responses Apple Developer
- Reset an app overview rating App Store Connect Help
- App Review Guidelines Apple Developer
- Increase App Ratings by using SKStoreReviewController Antoine van der Lee, SwiftLee
- Requesting App Store reviews in SwiftUI Natalia Panferova, Nil Coalescing
- How To Get More Ratings for Your App or Game Overnight Ariel Michaeli, Appfigures
- How to Increase Ratings & Reviews with iOS Ratings Prompt Tim Jones, AppTweak