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 ?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With