아래 코드는 네이티브 앱 스토어 응용 프로그램
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)
}
}
}
호출이 방지 동작에 대한 리뷰를 & 등급 섹션을 엽니 다 on 응용 프로그램 식별자 사용
self.showAppReivewScreen("951627022")
해결책을 찾았습니까? –
이것은 iOS6에서는 불가능합니다. 그러나 URL을 호출하는 iOS5 솔루션은 등급 페이지에서 App Store를 시작하는 것으로 보입니다. http://stackoverflow.com/questions/3654144/direct-rate-in-itunes-link-in-my-app/4382571#4382571 – lschult2
IOS 8.4는 어떻습니까? 행운? –