I have been trying to determine whether a device is able to make a phone call, including with the new iOS9 Continuity features which allow iPads to make phone calls when connected to an iPhone. Presently my code looks something like this:
NSURL *call = [NSURL URLWithString:[NSString stringWithFormat:@"tel:1111111111"]];
if([[UIApplication sharedApplication] canOpenURL:call])
{
[[UIApplication sharedApplication] openURL:call];
}
else
{
//show an alert
}
However, when I run this on an iPad (whether or not the iPad has the phone call through an iPhone enabled) the canOpenURL function always returns true. Is there any way to distinguish whether an iPad or iOS device will make a phone call as opposed to whether it theoretically could (if a phone were connected) make the call?