15
打開「評級和審查」我看到一些教程的SKStoreProductViewController
,如: Open a list of my apps in the App Store within my Appskstoreproductviewcontroller:如何在啓動
然而,它始終打開SKStoreProductViewController
與「詳細信息」,在推出後,我怎麼能打開「評級和審查」程序
打開「評級和審查」我看到一些教程的SKStoreProductViewController
,如: Open a list of my apps in the App Store within my Appskstoreproductviewcontroller:如何在啓動
然而,它始終打開SKStoreProductViewController
與「詳細信息」,在推出後,我怎麼能打開「評級和審查」程序
下面的代碼片段會打開評論&評級部分原生應用商店應用
struct AppStoreURLs {
static let templateReviewURLiOS8 = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software"
}
func showAppReivewScreen(_ appId: String?) {
guard let applicaitonIdentifier = appId, (applicaitonIdentifier.isEmpty == false) else { return }
let reivewURL = String(format: AppStoreURLs.templateReviewURLiOS8, applicaitonIdentifier)
if let url = URL(string: reivewURL), UIApplication.shared.canOpenURL(url) {
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [UIApplicationOpenURLOptionUniversalLinksOnly : false], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}
}
}
調用這個functi使用應用程序標識符
self.showAppReivewScreen("951627022")
您是否曾經找到解決方案? – 2013-05-16 07:04:20
這似乎不可能在iOS6中。但調用URL的iOS5解決方案似乎在評級頁面中啓動App Store http://stackoverflow.com/questions/3654144/direct-rate-in-itunes-link-in-my-app/4382571#4382571 – lschult2 2013-06-12 22:21:50
IOS 8.4怎麼樣?運氣好的話? – 2015-07-30 16:53:18