Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could I create "Call" button in HTML 5 IPhone application using PhoneGap?

Could I create "Call" button in HTML 5 IPhone application using PhoneGap? Pushing this button should invoke call to certain number on IPhone device.

like image 977
Alexey Zakharov Avatar asked Nov 12 '10 12:11

Alexey Zakharov


2 Answers

If you can specify a URL for the button, use the URL format tel:phonenumber.

like image 116
Daniel A. White Avatar answered Nov 07 '22 17:11

Daniel A. White


Best format is no punctuation in the number, so:

<a href="tel:+18002752273"> Call Apple Customer Support at 1-800-275-2273 </a>
like image 37
Puddingsan Avatar answered Nov 07 '22 17:11

Puddingsan