I've found two options to open my app from a Safari web page: a custom URL scheme created in my app project's Info.plist
or Apple's Universal Linking. Obviously the custom URL scheme is the easiest one to set up, but the problem I'm having with this is that Safari shows a confirmation window asking "Open myapp
?" first and the user has to tap OK before the app actually opens. I want my app to open automatically as the scheme is opened, and I'm being told the only way to do this is through Universal Linking (please correct me if this is not true). If this is true, however, I would like to know if it's possible in any way to put the required apple-app-site-association
file on a http://
domain instead of https://
? According the official Apple documentation the format of a correct Universal Link starts explicitly with https://
but my domain name can't be loaded on https://
without redirecting a few times and that messes up the web services I've written to execute other tasks in my app. The two main questions I'm left with after this issue:
1) Is it really impossible to work around the confirmation prompt using a custom URL scheme (myscheme://
)? If it's not impossible, how can I do this?
2) If I have to use Apple Universal Linking, can I use a http://
domain? If so, how do I do it? Right now if I load up the universal link, it just shows the dictionary inside the apple-app-site-association
file, which I'm pretty sure is not supposed to happen. I'm told it's supposed to send a NSUserActivity
object to my app delegate. How can I accomplish this with a http://
link?