I know how to add a contact, I know how to initiate a phone call. What I don't know, if it's possible to initiate a phone call only by contact name. What I mean: I add a new contact with phone number with pin code, like 123456*9, this is possible as I already did it.
1 Answers
How call can be initiated when you don't add contact number in this? BTW I found in Apple docs here
To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number. If your application receives URL strings from the user or an unknown source, you should also make sure that any special characters that might not be appropriate in a URL are escaped properly. For native applications, use the stringByAddingPercentEscapesUsingEncoding: method of NSString to escape characters, which returns a properly escaped version of your original string.
and please check if this solution works for you.
-
As I said, I add a number to the contact, but the number is with pin code, like 123456*9. But I cannot make phone call with '*' or '#'. – Idan Moshe May 13 '13 at 13:30
-
Can you show me an example on this with screenshot to get it fully – iEinstein May 13 '13 at 13:35
-
There is nothing to show. (1) Add contact with pin code - no problem (2) Pick this contact and phone call it - have no idea – Idan Moshe May 13 '13 at 13:36
-
@seza- But in this solution the URL is taken right without having special character within it – iEinstein May 13 '13 at 13:46
-
@idan Moshe- Tell me if it is helpful for you? – iEinstein May 13 '13 at 13:55