making a phone call with tel protocol
If we want to launch a phone app from our app we need to implement the "tel" protocol in iOS. iOS 10.3 or later versions giving an alert to the users before a call. if we use "teleprompt" in our app, the app doesn't submit in Appstore.
How do we make a phone call from our App?
The syntax for this,
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://15415551234"]];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"tel:15415551234"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1-541-555-1234"]];
How to make a call with access code?
If we want to make an call with access code we need to give "," before the access code.
for example
34758453454,,12345,,,345#
The "," stands for a small delay or pause. This "," makes a space for the IVR sounds.
I just collect the details for make a call with access code.
Happy codeing....!
No comments:
Post a Comment