Special links (tel :, mailto :, sms :) to PWA

I am developing a website that uses PWA to create a native language application on mobile phones.

The problem that I am facing is that when the application is added to the desktop, links starting with tel :, mailto: or sms :, no longer work.

In an ordinary Chrome browser on Android, they work fine - tel links open the dialer, mailto links open the mail application, and sms links open the SMS application.

It's simple, when you open them through PWA, they end on a blank screen that looks like this:

enter image description here

How can I get this to work in PWA since it works in a browser?

+4
source share
1 answer

Chrome 65.0.3325.109, tel: , window.location.href='tel:12345678') onClick, https://bugs.chromium.org/p/chromium/issues/detail?id=792990#c2

, window.open('tel:12345678').

0

Source: https://habr.com/ru/post/1689991/


All Articles