开发者

Call a GSM Service #123*

开发者 https://www.devze.com 2023-01-28 21:52 出处:网络
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.

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

精彩评论

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