[英]open write review page using SKStoreReviewController 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.