URL to open iphone app if installed, or open itunes if not installed? - iphone

I'd like to post a URL on my site which, when clicked, either opens up my iphone app (if it's been installed on the phone), or, if the app hasn't been installed, opens up itunes with my application, to allow it to be installed.
This seems like a basic sort of thing that might be quickly done with a magic formula URL, but I can't seem to find the relevant documentation anywhere.

This is exactly what Smart App Banners in iOS 6 are for:
http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
"If the app is already installed on a user's device, the banner intelligently changes its action, and tapping the banner will simply open the app. If the user doesn’t have your app on his device, tapping on the banner will take him to the app’s entry in the App Store."

Related

when the dynamic link is opened from browser(especially in safari) it is always redirecting to the app store even though app is installed in iOS

My URL is same as below, i will get this link to my mail from sendgrid and in iOS when i tap on this it always loads the browser first (safari most of the case) and opens in app preview page even though app is installed.
URL:<a clicktracking="off" href="https://{project_name}.page.link/?link=https://{project_name}.page.link/users/email_check/{{ $email_token }}&apn=com.{project_name}.app&isi={applestoreid}&ibi=com.{project_name}.app&efr=1">https://{project_name}.page.link/?link=https://{project_name}.page.link/users/email_check/{{ $email_token }}&apn=com.{project_name}.app&isi={applestoreid}&ibi=com.{project_name}.app&efr=1</a>
When you access a dynamic link in a browser. It will intentionally not go to your app because the actions indicate that your intent is to open a web page.
If you have your custom domain from Firebase ie: [your custom domain].app.goo.gl, send it into your link like so:
https://[your custom code].app.goo.gl/
And then tap that link. Does it open the app, or does it go to Safari? If it goes to Safari, it means that you haven't configured your iOS app for universal links yet, which is needed to support opening your custom domain url directly in the app. In Xcode, go to the Capabilities tab, and ensure that you've added the universal link domain as described in Apple's docs.
If you tapped the site address on the far top-right on iOS, it disables universal linking on that iOS app, until you long-tap and ask to open in the app again.
Second, you can't type in universal links into Safari's address bar and navigate to the app. Safari, by design, will open that URL in the browser. The easiest, most reliable way to test whether universal links are working is to put a universal link into the app, and tap the link from there.

ios in-app developer's apps an how to open it without AppStore launching

I have already got an app available in App Store, and now making some more.
I want my new app to contain list of my other apps and to update it automatically when a new app comes out.
The 2nd I want to make is: on clicking such link I want not to open an AppStore app, but displaying that app info in the app, with ability to install it right from there (an example - Cut the Rope game).
Any ideas?
Solution
In your iTunes store app link you need to change the following text:
?ls=1&mt=8
to
?mt=8
This will open the app page as an iTunes preview page.

Apprequest notification didn't lead to App Store as "iOS Native Deep Linking" is enabled

My question is simple. I sent a apprequest to someone who doesn't install my app and hopefully they click it and are lead to App Store and then install my app.
My case is that my test user has received the notification in his Facebook iPhone app. He clicked it and the screen transferred and nothing happened. The screen jumped to home screen.
It's strange to me.
I've set "iOS Native Deep Linking" and "iOS SSO setting" enabled and a valid "iPhone App Store ID" as well, which I hope my test user would be led to download it.
I found the sentences in the document,
"When someone taps a deep link in the Facebook for iPhone app, the user is immediately directed to your iOS app. If the app is not installed, the user is taken to the App Store to download your app."
I believe Facebook iPhone App should redirect the users to App Store as they tap on the notification. But it didn't and I don't know why.
Any suggestions? Many thanks.

iTunes app link not opening iTunes

I just released an iPhone app and am updating its support site. I've used the iTunes Link Maker to create a link like below. One time, it opened iTunes, the rest of the times, it has not. I've tried closing iTunes, accessing the link from both Safari and Chrome, but each time I only see the iTunes preview in the browser.
Example:
My App on the App Store
ANSWER: (see discussion below)
Pulling the href from the "View in App Store" link in iTunes Connect:
My App on the App Store
NOTE: Trailing params might be different in your own case.
SEE ALSO:
http://www.apple.com/itunes/affiliates/resources/documentation/linking-to-the-itunes-music-store.html
I usually grab the link from the apps' detail page in iTunes Connect. There's a link named View in App Store that has worked for my so far. Just make sure to replace the locale identifier (defaults to us) in the link if your app is available in multiple stores.
Just use iTunes Link Maker and remove the country code (i.e. "us") out of the link and it would always work open iTunes always and not a browser on the way (if there is iTunes installed on the target system).
You can also remove the app_name you don't really need it (if your app name would be changed nothing happen, actually the name is ignored).

URL for sending a user to the app review page on device's app store

What's the URL to launch in order to bring the iTunes App Store to the front, and open it to show the Reviews page of an app?
I want to send my users to the "Write a Review" page.
Some other SO answers provided URLs like the one below, but it doesn't seem to work:
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=12345678&pageNumber=0&sortOrdering=1
Any suggestions for a URL that'll work on iPhone and iPad?
Update: iOS 4.2 seems to have fixed this and links now open the App Store app directly rather than the review page.
This article Dissecting iTunes links explains everything.
Heading straight to a review form
It’s also possible to send someone
straight to the review form for an
app.
https://userpub.itunes.apple.com/WebObjects/MZUserPublishing.woa/wa/addUserReview?id=337064413&type=Purple+Software
Simply replace the ID with your app’s
ID to create a URL for your app.
On a desktop or laptop, this will take
you directly to the review form in
iTunes for the app or item. On an
iPhone or iPod touch, this will open
MobileSafari, then open iTunes or the
App Store app on the reviews page,
leaving the user only one tap away
from writing a review.
To find out an item’s ID, right (Mac &
PC) or control-click (Mac) on a link
to the item in iTunes and select Copy
Link. The result will look something
like this.
http://itunes.apple.com/au/album/dig-your-own-hole/id19605549
http://itunes.apple.com/au/app/consume-mobile-isp-packages/id337064413?mt=8
The ID is the number in the URL after
“id’.
It might be worth noting that this URL
was created using iTunes 8. I don't
think there’s a way to create review
links in iTunes 9, so maybe this URL
is being phased out. Use with caution.
Update: #mareMtl has provided an
alternative review link for apps.
Please note that it only works on
iPhone OS devices.
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=337064413
I tried a bunch of different links, this is only one working for me on iPhone AND iPad consistently:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8&id=YOUR_APP
Check out Appirater - http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/
Every time the user launches your app, Appirater will see if they’ve used the app for 30 days and launched it at least 15 times. If they have, they’ll be asked to rate the app, and then be taken to your app’s review page in the App Store.
this works for me:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=584691809
Am using Appirater for Rating my App
These links in AppiRater
// for ios6 or earlier
NSString *templateReviewURL = #"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=APP_ID";
// for ios7
NSString *templateReviewURLiOS7 = #"itms-apps://itunes.apple.com/app/idAPP_ID";
These links works fine .
But takes me to "Details" page of the app .
But it should go to "Ratings and Reviews" page..
suggest me any idea
Thanks
iTunes has a link maker you can use to get the URL. Tested on my app. It works.
For Requesting for rate and review to user after iOS 10.3+
The SKStoreReviewController allows users to rate an app directly from within the app through a dialog box. The only downsite is that you can only request StoreKit to display the dialog, but can't be sure if it will.
import StoreKit
func requestToRate() {
SKStoreReviewController.requestReview()
}