开发者

using tel: url to initiate call - but need to insert SPECIAL CHARACTER # [duplicate]

开发者 https://www.devze.com 2023-02-01 03:16 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?

I need to initiate a call which also enters an id separated by #

The problem is that as soon as I insert this special character the method does not fire (as开发者_JS百科 explained in the doc, I know)

Also stringByAddingPercentEscapesUsingEncoding does not change anything.

Is there a workaround? Can I send /simulate key strokes ?

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345#2"]]; <- because of the # it does not fire.

Thanks very much....


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

and link with CoreTelephony.


I think it's not possible. And in another forum someone asked Apple about that, but never get an answer back


According to RFC2806 you've got a 'post-dial' part that seemingly let's you do what you want. Try:

tel:12345;postd=#2
0

精彩评论

暂无评论...
验证码 换一张
取 消