[英]Open iOS App from URL in E-Mail (Custom URL Scheme)
I want the Links in my E-Mails to open in a 3rd-Party App on iPhones. 我希望我的电子邮件中的链接在iPhone的第三方应用程序中打开。 The Links should also be openable on any computer.
链接也应该在任何计算机上都可以打开。
The Links are normal http/https URLs. 链接是正常的http / https URL。 I am aware of the concept of custom url schemes on iOS.
我知道iOS上的自定义网址方案的概念。 But links with 'myscheme://' in mails won't work on a computer.
但是邮件中带有“ myscheme://”的链接在计算机上不起作用。 The normal approach is to open the website and let it detect if the device is an iPhone and redirect to the url scheme.
正常方法是打开网站,并让其检测设备是否为iPhone,然后重定向到url方案。 Problem in this case: Safari won't work on these iPhones.
在这种情况下的问题:Safari无法在这些iPhone上运行。 (No way around) Everything happens in an intranet.
(无法解决)一切都在Intranet中发生。
Is there a way to register an URL Scheme like Apple Maps does? 有没有办法像Apple Maps一样注册URL方案? This is Enterprise Development, so no App Store Review.
这是企业开发,因此没有App Store评论。
I found Universal Urls for this. 我为此找到了Universal Urls。 Still needs an internet connection.
仍然需要互联网连接。
https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html
I think you should modify your url with php or javascript that check device model if url open on iphone/ipad send custom URL schema back and other case send some url for pc 我认为您应该使用php或javascript修改您的网址,以检查设备型号(如果在iphone / ipad上打开的网址发送回自定义网址架构,而其他情况则发送一些用于PC的网址)
something like this Check if PHP-page is accessed from an iOS device 像这样检查是否可以从iOS设备访问PHP页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.