Swiftで開発したiOSアプリでユーザーレビューを促すダイアログを表示させる方法。
公式リファレンスの解説
SKStoreReviewController
An object that controls the process of requesting App Store ratings and reviews from users.
ユーザーにAppStoreの評価とレビューを要求するプロセスを制御するオブジェクト。
Overview
Use the requestReview() method to indicate when it makes sense within the logic of your app to ask the user for ratings and reviews within your app.
このメソッドを使用して、アプリのロジック内でユーザーにアプリ内の評価とレビューを求めることが理にかなっている場合を示します。
実装コード
必要なのは2行だけ。
import StoreKit
SKStoreReviewController.requestReview()
ただしダイアログを表示できるのは365日で最大3回まで。
どのタイミングで表示させるか工夫しないと、効果を得られないので注意が必要。
またユーザーは設定画面からレビュー訴求ダイアログの非表示設定が可能であるため、必ず表示されるとは限らない。
おすすめ情報