Reputation: 5153
I was making a simple app where I wanted to allow user to make specific phone calls from the app.
We have a lot of special numbers over here which include * and # to get some specific data. I began writing the app and used this initially to make the call
NSString * phonenumber = [NSString stringWithFormat:@"%@%@%@",
@"tel://*188*",
number.text,
@"#"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phonenumber]];
While this method works on normal digits, the special characters are ignored so i ventured looking for the solution and found that the CoreTelephony Framework offers this capability.
My new method includes
Now everything works perfectly fine and here are my concerns
Thank You
Upvotes: 1
Views: 990
Reputation: 318814
The Core Telephony
framework is a valid framework. But there is no public method or function named CTCallDialWithID
. That must be a private API. Apple will definitely reject your app for using a private API. You can only use the Core Telephony APIs documented by Apple. Any other use will cause a rejection (like in this case).
Upvotes: 1