Call a GSM Service #123*

后端 未结 2 898
长发绾君心
长发绾君心 2020-12-07 00:07

I want to call a 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         


        
相关标签:
2条回答
  • 2020-12-07 00:25

    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.

    0 讨论(0)
  • 2020-12-07 00:26

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

    Your example would be:

    [NSURL URLWithString:@"tel:%23123%2A1%2A4%23"]
    
    0 讨论(0)
提交回复
热议问题