In-App Rating Dialog API
Ask users for an App Store rating at the perfect moment — trigger the native iOS rating dialog from your web app.
Positive App Store reviews are one of the most powerful growth drivers for your app. The In-App Rating Dialog API of WebViewGold lets you ask your users for a rating at exactly the right moment — for example, right after a successful purchase or after they completed a task in your web app.
Option 1: Native iOS rating dialog (default)
Call the following URL from an HTML link or from JavaScript to show the native SKStoreReviewController rating dialog:
<a href="rateapp://">Enjoying the app? Rate us!</a>
window.location.href = "rateapp://";
Note: Apple limits how often the native rating dialog may be displayed (about three times per year per user), so it might not appear on every call — this is by design and also applies during development.
Option 2: Custom rating dialog
If you prefer a dialog that always appears and sends the user to your App Store page instead, configure it in Config.swift:
showcustomrateappdialog— set totrueto show a custom rate dialog when triggeringrateapp://instead of attempting the native review call.ratemyappurl— set the App Store URL of your app, e.g.https://apps.apple.com/app/idXXXXXXXXX?action=write-review.
Typical Use Cases:
- Ask for a review right after a positive interaction (completed order, level up, successful booking).
- Show your own custom "Do you like the app?" flow on your website first, and only send happy users to
rateapp://.