有没有办法在iOS 12.2的PWA中使用mailto:或message:方案? [英] Is there a way to use the mailto: or message: scheme in a PWA in iOS 12.2?
问题描述
我已经使用Ionic 4构建了PWA,该IWA使用"mailto:"方案具有一个带有简单href的联系人"按钮.
I've built a PWA using Ionic 4 that had a "Contact" Button with a simple href using the 'mailto:' scheme.
<a href="mailto:example@gmail.com">Contact</a>
从主屏幕启动PWA时,这曾用于在iOS 12.1中打开本机邮件应用程序.自从我更新到iOS 12.2以来,它仅打开PWA内部Safari并显示一条消息,提示Safari无法打开以"mailto:"开头的链接.
This used to open the native Mail app in iOS 12.1 when starting the PWA from homescreen. Since I updated to iOS 12.2 it just opens the PWA internal Safari with a message that Safari can't open links starting with 'mailto:'
我尝试使用其他URI方案,例如'instagram:'或'message:',但它们都导致相同的问题.从主屏幕启动PWA时,我发现唯一仍然可以使用的功能就是"tel:"方案.
I have tried using other URI schemes like 'instagram:' or 'message:' but they all lead to the same problem. The only one that I have found to still be functional when I start my PWA from homescreen is the 'tel:' scheme.
是否还有其他人遇到此问题,并且不知道如何从已从主屏幕打开的PWA中打开tel:以外的URI方案?
Has anyone else encountered this problem and has any idea how to still open URI schemes other than tel: from a PWA that has been opened from homescreen?
推荐答案
我有一个安装在iOS 12.2上的PWA,我的链接使用target ="_ blank",并且可以正常工作. 你尝试过这个吗?
I have a PWA which is installed on iOS 12.2, my link uses target="_blank" and it works. Did you try this ?
祝你有美好的一天,
这篇关于有没有办法在iOS 12.2的PWA中使用mailto:或message:方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!