简体   繁体   English

没有第三方应用的iOS Universal深度链接

[英]iOS Universal deeplinking without third party app

I am implementing universal deeplinking, I don't want to use any third party framework I have the domain and I have uploaded the apple-app-site association file. 我正在实现通用的深层链接,我不想使用拥有域的任何第三方框架,并且已经上传了apple-app-site关联文件。 Now I want to test if everything is correct or not. 现在,我想测试一切是否正确。 How to create the universal link, how to specify ios url scheme and app id in the link ? 如何创建通用链接,如何在链接中指定ios网址方案和应用ID?

Universal Links do not look any different than normal links with your domain. 通用链接在您的域中看起来与普通链接没有任何不同。 If you registered your AASA at yourdomain.com/apple-app-site-association then yourdomain.com/?example=data should open your app. 如果您在yourdomain.com/apple-app-site-association注册了AASA,则yourdomain.com/?example=data应该会打开您的应用程序。 In the comments you mentioned you want it to open the app store if its not installed. 在您提到的评论中,您希望它打开未安装的应用程序商店。 You'll actually need to redirect your link to go to the app store. 实际上,您实际上需要重定向链接以转到应用商店。 The Universal Link will not automatically handle that. 通用链接不会自动处理。 So yourdomain.com/ will actually need to return a 301 redirect to the app store url. 因此yourdomain.com/实际上将需要返回301重定向到应用商店的网址。 Branch links have that functionality built in if you'd like to save yourself a lot of time. 如果您想节省很多时间,则分支链接具有内置的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM