Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 3 - Open App Store Review Tab Directly (NOT the iTunes Store Review Tab) [duplicate]

I've searched for a way to open the App Store review tab either inside my own app or in the App Store app, to no avail. Any help on how to do this?

Notes: This is specifically for SWIFT 3, not Objective-C. I have seen old answers to open the app review tab in the iTunes store with the "purple software" url but I really dislike that it's not opening the App Store. I've used apps that open the App Store review tab directly but haven't found the code to do it.

Thanks!

like image 496
Trev14 Avatar asked Feb 14 '17 19:02

Trev14


People also ask

Why can't I see my review on App Store?

Helpful answers When you review an app, it may take up to 24 hours for your review to show up. Hello, When you review an app, it may take up to 24 hours for your review to show up.

Can you export App Store Reviews?

To download your app reviews as a CSV, head over to Reviews in the Explore navigation menu. Apply the necessary filters to refine the review list to only show the reviews you are interested in (or leave it as it is to export them all). Press 'Export' to export app reviews.


1 Answers

You need to use the itms-apps:// URL scheme (instead of itms://) in order to go to the App Store instead of opening in the iTunes app.

if let reviewURL = URL(string: "itms-apps://itunes.apple.com/us/app/apple-store/YOUR_APP_ID?mt=8"), UIApplication.shared.canOpenURL(reviewURL) {
     if #available(iOS 10.0, *) {
       UIApplication.shared.open(reviewURL, options: [:], completionHandler: nil)
     } else {
       UIApplication.shared.openURL(reviewURL)
     }     
}
like image 109
Collin Avatar answered Oct 07 '22 05:10

Collin