Using tel: url to initiate a call - but insert SPECIAL CHARACTER #

Possible duplicate:
How to use tel: with * (asterisk, asterisk) or # (hash, pound) on iOS?

I need to initiate a call that also enters an identifier separated by #

The problem is that as soon as I insert this special character, the method does not work (as explained in the document, I know)

Also stringByAddingPercentEscapesUsingEncoding does not change anything.

Is there a workaround? Can I send / simulate keystrokes?

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345#2"]]; <- due to the fact that it does not work.

Thank you very much....

+4
source share
3 answers

I think it's impossible. And in another forum, someone asked Apple about this, but never received an answer.

+1
source

CTCallDialWithID (@ "12345 # 2", -1);

and connection with CoreTelephony.

+2
source

According to RFC2806 , you have a “after dialing” part that would seem to allow you to do what you want. Try:

 tel:12345;postd=#2 
0
source

Source: https://habr.com/ru/post/1333191/


All Articles