简体   繁体   English

使用 SKStore Review Controller 和查询参数“action=write-review”打开写评论页面

[英]open write review page using SKStore​Review​Controller with query parameters “action=write-review”

https://developer.apple.com/documentation/storekit/skstorereviewcontroller/2851536-requestreview https://developer.apple.com/documentation/storekit/skstorereviewcontroller/2851536-requestreview

Apple document suggest to automatically open a page on which users can write a review in the App Store, append the query parameter action=write-review to your product URL. Apple 文档建议在 App Store 中自动打开一个用户可以写评论的页面,将查询参数 action=write-review 附加到您的产品 URL。

I want to redirect the user to write a comment page of the app on the app store.我想重定向用户在应用商店上写应用的评论页面。 I am new to iOS please guide me to achieve this functionality.我是 iOS 新手,请指导我实现此功能。

Thank you.谢谢你。

here i what i am using这是我正在使用的

let appID = "Your App ID on App Store"
let urlStr = "itms-apps://itunes.apple.com/app/id\(appID)?action=write-review" 
if let url = URL(string: urlStr), UIApplication.shared.canOpenURL(url) {
    if #available(iOS 10.0, *) {
        UIApplication.shared.open(url, options: [:], completionHandler: nil)
    } else {
        UIApplication.shared.openURL(url)
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SKStore Review Controller:如何获得书面评论? - SKStore​Review​Controller: How to get written reviews? SKStore Review Controller,如何正确使用? - SKStore​Review​Controller, How to use it in a correct way? SKStore审核控制器:如何处理限额? - SKStore​Review​Controller: How are the limits handled? 是否可以确定是否已提交SKStore Review Controller。 - Is it possible determine if SKStore​Review​Controller has been presented. 如何使用requestReview(SKStore Review Controller)在随机一段时间后在当前viewController中显示review popup - How to use requestReview (SKStore​Review​Controller) to show review popup in the current viewController after a random period of time 直接链接到App Store中的应用程序的“撰写评论”页面 - Link Directly to the “Write a Review” Page for an App in the App Store 如何打开iTunes评论URL控制器而不是点击页面? - how to open the iTunes review URL controller not the tap page? Facebook评论被拒绝使用开放图照片 - Facebook review rejected for using open graph photos 限制用户在Apple App Store上撰写有关该应用的评论 - Restrict user to write review about the app at Apple app store 撰写iOS App评论以使用Swift禁用广告一天 - Write an iOS App review to disable ads for a day with Swift
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM