iOS URL schemes and emails - ios

So asking this because I have not found a version of this in one place that describes the outcome, or I don't know what to search for.
Here is the question. I have a app that I wrote and incorporated a URL scheme, let's say it's named ABC, so the url scheme would be:
ABC:/this/is/the/data
So, I want to send out a email to folks that would open my app, so the link is pretty straight forward. But, what if I want them to goto the website in the case they don't have my app, way www.abc.com/this/is/the/data. Is there a way to code my email so that both are possible? (That if the app is present it opens, if not the site opens?)
Thanks in advance!

In an email there is not a way to do it. My approach would be to send them to your website and in your website page have the iOS smart banner for your app. This will give them the option to open the app or download the application.
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
The other approach would be to include 2 links in your email and explain that if you have the app to click the specific link. If not then click the website link.

Related

Problem on Universal link with mail app and gmail app

I've configured a universal via branch.io.
My link seems to be working when presented as https://example.com in a mail or gmail.
However, this doesn't look good and people don't tend to click on plain old links. We're using hypertext reference tags and Button tags to make it bit friendly.
It looks something like this:
Go to App
Problem now we've is that this Go to App link/button doesn't work in native mail or gmail app. Instead of taking us to our app, mail app tries to open this link <a href> in safari. It then takes us to our app's App Store page.
Peculiar thing is If I open gmail in safari to start with and open the link from there then safari seems to understand that this is universal link and it segues into my app.
In summary:
1.Safari can open any link including hypertext reference or button tag
2.Both Mail and gmail app don't support hypertext reference nor button tag but plain old link https://example.com is fine in both the app
Has anybody gone through similar situation ? Appreciate any sort of help.
There are a lot of limitation when you hyperlink a universal link. I would recommend you to use Branch Universal email which allows you a seamless email to app integration. Please see:
https://branch.io/universal-email/
https://docs.branch.io/emails/universal-email
In case you still have any other doubt, reach out to support#branch.io

Is there a way to force iOS to *not* deep/universal link from the browser?

I am having a real hard time finding an answer to this. I know that the app manifest itself can exclude links, but I have an active bug that is affecting users and updating the app is not a fix for current users unfortunately.
The issue is that on our mobile site, we have a flow where it redirects to another domain, an then redirects back. On that 2nd redirect back, if our app is installed on the device, the app will briefly open before switching back to the browser. When this happens, the page breaks (as the 2nd redirect is actually a form submission (a POST) and the app can't forward that POST on.
Is there a way we can add a header or a param or something to tell iOS to not try a deep/universal link? Something to just use safari?
Not with headers
Unfortunately, the device will only make a request to the Universal Link if it does not find a matching AASA file on your device. It will perform a handoff to your app which is done on the local OS with no requests. Therefore, there is no way to check the headers of the request if the device recognizes it as a Universal link.
Same domain fix
The only case in which Universal Link will use the browser if the app is installed is when a is already on the Universal Link domain when they click the universal link.
Example: If a user is on example.com on Safair, they have an AASA on their device that has applinks:example.com, and they click a link that redirects them to example.com/item123, they will not open the app.
In your case, you leave the domain and come back. Your best bet is to figure out a way to redirect the user while keeping them on the same domain. I know that probably doesn't help a ton, but that's your best bet.

ios make universal links open only from specific websites

I implemented universal link to my iOS app. It directs user to application if url has this "www.websiteurl.com/suburl/*.com" pattern.
I want this work only if user click this url from google search result. If user is already in website I want to open url in website either not open the application. How can I prevent it?
edit: I implemented Support Universal Links documentation.
Yes, this is possible, but I don't recommend it. If the user has the app installed, it seems like you should want to open the app as soon as possible since it is a much better experience. Anyways, here's my solution.
Option 1
Short answer: Wrap your website links in javascript
Why? according to the Apple standards of Universal Links, a link must be clicked on by a user to trigger the Universal Link, therefore if you set up all of your links on your website to be handled by javascript, the app will never open from inside your website.
Therefore, change
Link
Into a javascript call
Link
And open the link from javascript
function clickLink(link) {
window.open(link);
}
Option 2 (Better option)
Use a third-party like Branch links for all of your deep linking so that you can pass more context from web to app allowing the user to continue the same experience on mobile that they were just having on the web. Native is a much better experience 99.9% of the time and it converts users at a much higher rate than web.

IOS App Support Page URL

I have a simple question. while we submit our app to IOS App store, iTunesConnect has a section for Application Support URL. Is it must to create a URL page ( page must exist?) as now I just pointed the url to a directory under my website such as http://example.com/directory (this is just an example of url)
What if there is no content in that page? Will Apple reject my app? Should I create an html page about my application?
Thanks a lot for your time.
Yes, you have to provide a URL as it complains that the field is required if you leave it empty.
I do not think they will reject it but for the users' sake I would create a simple website maybe containing your email address so they can actually use the Application Support feature.
Hope that helps :)

What URL to use for sharing app on Facebook, twitter,...?

I would like to include a button in my app "share this app'. And then I would popup the
standard UIActivityViewController. I would attach the URL to my app in the app store.
But what URL should I use? Are there any guidelines? I would like that it shows pretty on Facebook, twitter and stuff...
This is a duplicate, already answered this question see the link ..
But you need to have the app on the appstore already so yeah, or you need to be sure of your appname.
EDIT:
Use itms:// instead of http:// for it to open directly in the appstore and not redirect from the browser first
I looked at the post mentioned by Andre Filoppio. It does indeed mention a lot of different URL that could potentially be used. I have been testen them all, the only one that got my nice pretty Facebook mention was:
http://itunes.apple.com/app/idXXXXXXXX (where XXXXX is your app id)
The fancy ones like http://appstore.com/ProductNameWithoutSpacesAndStuff
all have the same problem: they have so many redirects, or open in itunes directly, that Facebook just displays this kind of message "connecting to Itunes store" instead of your app icon with something like "available on the app store"
(sorry guys I had a nice picture, but apparently I don't have enough reputation to post this to this answer)

Resources