Is there a way to make a phone number clickable on an iphone or android phone to make a call in HTML?

AndroidHtmlIphoneWebkitMobile Safari

Android Problem Overview


Is it possible to make a phone number clickable in HTML so that when a user clicks on the number it is called?

Android Solutions


Solution 1 - Android

Something like this should work:

<a href="tel:+1-800-555-5555">Call 1-800-555-5555</a>

More info:

http://en.wikipedia.org/wiki/URI_scheme#tel:

https://www.rfc-editor.org/rfc/rfc3966

Solution 2 - Android

You can detect a phone number in iOS with:

<i>web_view.dataDetectorTypes=UIDataDetectorTypePhoneNumber;<i>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionleeand00View Question on Stackoverflow
Solution 1 - AndroidMark BView Answer on Stackoverflow
Solution 2 - AndroidMuthu RamView Answer on Stackoverflow