I found two options for opening my application from the Safari web page: a custom URL scheme created in my Info.plist application project or Apple Universal Linking. The custom URL scheme is obviously the easiest to configure, but the problem I am facing is that Safari displays a confirmation window asking βOpen myapp ?β. first, and the user must click "OK" before the application really opens. I want my application to open automatically as the scheme opens, and they tell me that the only way to do this is through Universal Linking (please correct me if this is incorrect). If this is true, however, I would like to know if it is possible to somehow put the required apple-app-site-association file in the http:// domain instead of https:// ? According to Apple's official documentation, the correct Universal Link format begins explicitly with https:// , but my domain name cannot be uploaded to https:// without redirecting several times, and this will ruin the web services that I wrote to perform other tasks in my application. Two main questions that I left after this problem:
1) Is it really impossible to bypass the confirmation prompt using a special URL scheme ( myscheme:// )? If this is not possible, how can I do it?
2) If I need to use Apple Universal Linking, can I use the http:// domain? If so, how do I do this? Right now, if I download a universal link, it just shows the dictionary inside the apple-app-site-association file, which I am sure should not happen. I was told that he should send the NSUserActivity object NSUserActivity my application delegate. How to do this using the http:// link?
source share