Search code examples
jqueryioshtmljquery-mobiletel

How to get contact information when creating a contact from TEL URI


Assuming I have an HTML table with these info (writing as text but it's html behind):

lastname: MyName
firstname: MyFirstName
tel: 04 50 12 34 56
email : bla@mail.com

In html I wrote the tel field like that :

<a href="tel:+33450123456">04 50 12 34 56</a>

When i'm on iOS, if I click on the anchor it asks me if I want to call or create contact. I want then to create a contact with all my informations already filled. Any idea? Only with HTML or JS or JQM please


Solution

  • I'm pretty sure this isn't possible. iOS has a bunch of url schemes included in Safari that you can take advantage of, but adding a complete new contact isn't one of them.

    More information on the available schemes here:

    https://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html