1
2

More than 1 year has passed since last update.

【Swift】ユーザーレビューを促す訴求ダイアログを表示する方法

Last updated at Posted at 2021-10-14

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回まで。

どのタイミングで表示させるか工夫しないと、効果を得られないので注意が必要。

またユーザーは設定画面からレビュー訴求ダイアログの非表示設定が可能であるため、必ず表示されるとは限らない。

おすすめ情報

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2