paul_1991
paul_1991

Reputation: 231

Make an autocall programmatically in iOS

Is it possible to do a call to a predefinite number in iphone sdk with some system api?

Upvotes: 0

Views: 547

Answers (1)

John Parker
John Parker

Reputation: 54445

You can do this as follows, but the user will need to accept the call placement.

NSURL *telephoneURL = [NSURL URLWithString:@"tel:01234567890"];
[[UIApplication sharedApplication] openURL:telephoneURL];

If you're attempting to place a call without the user's acknowledgement, then this (thankfully) isn't possible using the public API.

Upvotes: 5

Related Questions