我想在我的应用程序中显示应用内评分和评论弹出窗口(即像下面附件中的弹出窗口)
我搜索了这个功能,我发现
StoreKit
有这个功能SKStoreReviewController.requestReview()
显示这个弹出窗口。
发生的事情是,这个功能给了我一个带有评级功能的弹出窗口,但无法编写评论选择。
所以有人知道如何显示写评论选择吗?
提前谢谢您。
提交按钮将导航到带有星星的评论页面。因此,无法直接在该弹出窗口上撰写评论。
用户将通过标准化提示提交评分,并可以通过 Touch ID 进行身份验证来撰写和提交评论。
func requestAppReview() {
if #available(iOS 10.3, *) {
// Check if the review is available on the current device
SKStoreReviewController.requestReview()
} else {
// Fallback for iOS versions older than 10.3
// You can provide a custom UI for the user to leave a review or redirect them to the App Store
// with a URL
}
}
使用
override func viewDidLoad() {
super.viewDidLoad()
requestAppReview()
}