Universal link or URL scheme for App Clip to link back from email - ios

We are building an App Clip that comes with some sign up functionality. Beside Sign in with Apple users can also sign up with email.
In order to proceed they need to confirm a link in an email that has been sent to the address used for signing up. The universal link works perfectly fine for the full app, so the AASA file and associated domains are working.
However, we can not link back to the App Clip which is a major break in the user flow and it's very likely that users are not able to return to the App Clip.
Is there any way to link from an email back to the App Clip?

Related

Open App Store 'Featured' page (not a specific app) from a link.

I know that an app can be linked to directly from an URL so that when it is clicked on my phone, the AppStore app will open and guide me to the app in question but is it possible to link to the 'Featured' page (or better still the 'Redeem' page of AppStore from a link?
The scenario is I send a promo code for AppXYZ out in an email and the recipient can click that email link and be taken to (a) the AppStore app or (b) the AppStore app Redeem page passing the code through.
I know the link for something similar in iTunes but not AppStore. Can't seem to find any info other than links to specific apps (which I don't want).
iTunes: itmss://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/freeProductCodeWizard?code=THE_CODE
Thanks in advance.
If you want to redeem a code on the App Store it nevertheless always goes through the link you provided, but correctly spelled:
itms://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/freeProductCodeWizard?code=THE_CODE
It opens the iTunes app on iOS with the code filled in, the user still has to tap on redeem as it's still a transaction. If he does so, the app will automatically be downloaded (just tested it with the latest iOS version)
I tried to copy a couple of links from the desktop iTunes and checked, if they work on iOS, but the answer is no. E.g.:
https://itunes.apple.com/us/collection/editors-choice/id25204?fcId=531794418&mt=8
https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewRoom?fcId=1188885481&genreIdString=36&mediaTypeString=Mobile+Software+Applications
https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewRoom?fcId=554381198&genreIdString=36&mediaTypeString=Mobile+Software+Applications
(Also tried it with itms:// instead of https://)

Putting information into a newly installed app

I have to create an iOS app, which needs to know a referral code right after the installation. The code comes from an email or from a link in the browser. The goal is to make the app have the referral code no matter it is already installed on the user's device or it is being installed by the clicking of the link.
What I know already:
I have to register an URL scheme with my app, for example myapp://
I have to handle opening by this URL, recognizing the referrer code from it (myapp://refcode=123)
I have to have a web service, which detects (with JavaScript) if the user's device can handle my URL scheme or not (like this: https://stackoverflow.com/a/6599773/511878)
If the app is not installed, I can send the user to the App Store to download it, otherwise I can open the app by this URL and transfer the information into it
What I miss: How can I immediately call this URL after installation?
I was sure this is impossible to do until this morning, when I've found that Apple's TestFlight is doing exactly the same. I've got an email containing an invite to some app, clicked on the link, and because I did not have TestFlight installed on that device so far, it brought me to the App Store, where I clicked install. The device installed TestFlight app. After this I've clicked the Open button in the Store, which immediately showed the invite for me.
I think the solution can't be that it recognized me, and picket up the invite from the server based on my user account, because I might have multiple invites, so it had to know which exact one to show.
EDIT: Video of this happening: http://gk.lka.hu/x/tf.mov
So the question is: How can I transfer information into an app which is being installed after a link is clicked without reclicking the link?
I'm a developer at Branch and we recently built this system for others to use. If you want to build a similar system from scratch, here is an example of what you'll have to do:
The web service you described above must capture some information from the user, such as IP address, OS, OS version, screen size, etc., before redirecting to the App Store. It should associate this with the link that was clicked, or at least the refcode from the link (http://yoursite.com/redirect?refcode=123).
After your app is downloaded, the first time it opens, send up the same info (IP Address, OS, etc.) up to your server. If your server sees these params and that they're the same as what you grabbed in step 1, it should pass back refcode=123 to your app.
Your app should then handle the 123 refcode however you see fit (e.g. open to the appropriate view controller, apply the referral code, etc.).
Hopefully that helps. It's definitely harder than it sounds to build from scratch..

How do I get a URL for my app before submitting it?

In my app you can post a message to facebook or twitter, I want to include a link to my app in these posts by default, I've setup & tested the function in the app which works fine but I'd like to know how I get a URL for my app in the app store before submitting it? I've registered the app with iTunes Connect which gives a 'View in App Store' link, when I click this it provides a URL but only for the US, my app is most likely to be used in the UK so I'd need a UK URL.
Your link will also work in other countries. iTunes knows to search for the app in your current store. However, if you want the browser to open the UK store (before iTunes itself is launched) you can change the URL part that says:
https://itunes.apple.com/us...
to:
https://itunes.apple.com/gb...

How do I create a custom url scheme that will be recognized as a link?

My url scheme looks like "foo://".
This works great when I type into the browser.
The application requires I send this link in an e-mail and the e-mail opens from there. How can I configure the url scheme to be recognized as a link? I tried doing http://foo:// but of course my browser caught that.
One solution is to ping my server http://foo.com/redirect_to_app. If there is a way to do this with the app only I would like to know.
If you put the URL as foo:// in the email body, then that is all you need to do. Of course it requires that the user reads the email using the Mail app on their iOS device and the user must have your app installed on their iOS device as well.
Your foo:// URL will mean nothing if the email is read on a non-iOS device or computer or if the user doesn't have your app installed.
This all assumes that your goal is for one user of your app to send an email to another user of your app and tapping on the link in the email will launch your app on the receiver's iOS device.
There is a way. You need to create a webpage and create redirect code(url scheme) to your app.
Check this out... Check if URL scheme is supported in javascript

Facebook App Requests aren't shown on iOS devices?

I've sent an app invitation from an iPad app to a test Facebook account via Facebook's API. When I login to the test account on my PC, the app request is there.
When I login to the test account on my iPad (either via Safari or via the Facebook App), I can see the number "1" next to the App Centre tab, but when I click it and go to the App Centre, there's no request. In fact, I can't see any App Centre areas dedicated to requests on Facebook for iOS - there's only Social Picks and Top Apps. Any explanation for this?
This is caused by an incorrect configuration on the Facebook app setting page. When you are setting up the app, you need to make sure the following is set correctly.
Go to developers.facebook.com then select "Apps". Edit your app and fill in the following..
iOS App Bundle (dont think it's essential but fill it in, this the bundle id from Xcode (com.companyname.appname))
iPhone/iPad App Store ID - This is ESSENTIAL, one of these must be filled in with a valid app store ID. You get this when you create an app with iTunes Connect. If you create an app, and fill in the details right up to the point where it asks you to submit the binary, it will generate what Apple refers to as an Apple ID (or iTunes Id?). It's just a long integer value. It doesn't have to be for the corresponding app, if you already have apps in the app store just log in to iTunes connect and use an existing one for testing.
Configured for iOS SSO - Enabled
Configured for Deep Linking - Enabled
The only functionality you get from Facebook when a user clicks an app notification on iOS is the user being redirected to the app, if installed, or to the App Store if not. Also if you want your app notifications to show up on desktop, you'll need a Canvas URL under the "App On Facebook" section.
In my tests I had to have a canvas URL to get iOS notifications working, but I'm not sure if this is a bug with Facebook or intended behaviour, so if it doesn't work with just iOS enabled, enable app on Facebook too and stick in a random url if you don't have one.
I just figured there can be another reason for this symptom: if your app has location restriction (only available in certain countries), the user who receives the request has to be in that country (e.g. I had to connect with mine via GeoEdge).

Resources