简体   繁体   English

如何触发将站点添加为电话链接应用程序的提示?

[英]How is the prompt to add site as an application for tel links triggered?

A customer sent me a link to check something in an online switchboard.一位客户给我发送了一个链接,让我在在线总机中检查某些内容。 After logging in with Firefox I saw this prompt:用 Firefox 登录后,我看到了这个提示:

提示将站点添加为电话链接的应用程序

Checking the source I could not find how this is triggered.检查来源我找不到这是如何触发的。 How is it done?它是如何完成的?

Navigator.registerProtocolHandler does registration. Navigator.registerProtocolHandler注册。 And browser asks user for confirmation then.然后浏览器要求用户确认。

Beware not all the browsers support this, so check for method's existence请注意并非所有浏览器都支持此功能,因此请检查方法是否存在

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

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