https://qiita.com/star__hoshi/items/34b06ef4aed6692ff015
を参考にAppdelegate.swiftに書いてみたのですが実機で確認すると出てこないです。。
単純に1/20だから出にくいのでしょうか?それとも実機テスト(未リリース)だと出ないのでしょうか。
確認したこと
・ネットワーク通信→○
・iOS10.3以降→○
・端末の時間設定変更なし→○
・TestFlight経由ではなくシュミレーターおよび実機での確認
@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let key = "startUpCount" UserDefaults.standard.set(UserDefaults.standard.integer(forKey: key) + 1, forKey: key) UserDefaults.standard.synchronize() let count = UserDefaults.standard.integer(forKey: key) if count == 20 { if #available(iOS 10.3, *) { SKStoreReviewController.requestReview() } } return true } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。