iOS application app store link before submission

Vikas Kore
2 min readSep 3, 2019

--

In an application we have to implement share app functionality, were we used to share our applications app store link before submission of app on the store.
For this we just need Apple ID, by using correct ID in the following url we can open and show our live app. If Apple ID went wrong then Apple gives us alert like:
App Not Available
This app is currently not available in your country or region.

Apple ID : An automatically generated ID assigned to your app.

We can find Apple ID by login app store connect
https://appstoreconnect.apple.com/login or https://itunesconnect.apple.com/login
were added same application

Then go to My Apps -> App Store -> App Information -> General Information -> Apple ID

and Open URL from iOS app
if #available(iOS 10, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}

We can do this in following different ways :

  1. “https://apps.apple.com/app/id<Apple ID>”
    Using https: will leads you to App Store directly.
  2. “itms-apps://itunes.apple.com/app/id<Apple ID>”
    Using itms-apps: will leads you to App Store directly.
  3. “itms://itunes.apple.com/app/id<Apple ID>”
    Using itms: will leads you to App Store page in iTunes Store. You’ll see “Store” as a button links you to App Store on the upper right corner.
  4. “http://appstore.com/<AppName>”
    Opens Safari-> app store as App name is search string.
    Note: we have to enter app name by removing all whitespace and special character, Example: App name is “Test APP!”, will be “testapp”

— Here how we Rate and Review application —

import StoreKitfunc rateApp() {
if #available(iOS 10.3, *) {
SKStoreReviewController.requestReview()
} else if let url = URL(string: "URL String") {if #available(iOS 10, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
} }
}

Thank you, Happy coding…

--

--

Vikas Kore
Vikas Kore

No responses yet