开发者

Call a GSM Service #123*

I want to call a开发者_C百科 GSM-Servicenumber of my provider, but the iPhone won't give a reaction. When I try the same with a regular number it works.

[[UIApplication sharedApplication]
                openURL:[NSURL URLWithString:@"tel:#123*1*4#"]
];

Have anyone an idea to get the Phone dial the GSM-Code?


it is not possible to use gsm-codes with public methods

See Apples Documentation about Phone Links:

To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number.


Replace * with %2A and # with %23.

Your example would be:

[NSURL URLWithString:@"tel:%23123%2A1%2A4%23"]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜