Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to place mobile call from PWA

In the PWA, I would like to give a feature where it will show user's mobile number and after tapping on call button within PWA, actual mobile call should get triggered.

I couldn't find any reference or documentation for this. Please let me know how to achieve this action ?

like image 407
vikramvi Avatar asked Aug 16 '19 16:08

vikramvi


People also ask

Does PWA work on mobile?

You can use Progressive Web Apps (PWAs) for a fast web experience on your computer or mobile device. You can install the PWA for faster access and additional functionality, like more storage for content to use offline.

Can PWA use microphone?

In addition, PWAs can fully utilize the technology of the device just like native apps. Notifications, gyroscope, mic/speakers and camera access all aid in bringing that app-like user experience.

What is the difference between Web App and PWA?

At this point, you may be wondering what the difference is between a web app and a progressive web app. A PWA is essentially a “boosted” web app that can load even without an internet connection.


1 Answers

If you want to link a phone number, it's really similar to linking a regular website:

<a href="tel:15555551235">+1 (555) 555-1234</a>

This works for websites in general, there is nothing special about it being in a PWA.

If you want even more information about telephone links, this article is pretty good: https://css-tricks.com/the-current-state-of-telephone-links/

It's from 2016 so browser support is even better. There's a bunch of info in there about SEO and country codes as well.

like image 82
Nathan Heffley Avatar answered Sep 22 '22 02:09

Nathan Heffley