Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPod Touch canOpenURL of type tel://

On an iPod Touch running iOS 8.0 (12A365), canOpenURL: returns YES for tel:// URL schemes.

Also, openURL: returns nil, after a 5 - 10 second delay.

UIApplication *application = [UIApplication sharedApplication];
NSURL *url = [NSURL URLWithString:@"tel://"];

if ([application canOpenURL:url])
{
    [application openURL:url];
}

Anyone know why canOpenURL: doesn't return NO for iPod? The facetime URL scheme is different ('facetime://') so in theory it should return NO.

Unfortunately I don't have an iPod with iOS7 to test, so I can't isolate the problem to only iOS8.

like image 949
paulvs Avatar asked Sep 19 '14 21:09

paulvs


1 Answers

Hm I'm not sure whether I'm being helpful here as I don't own an iPod to test it but on Mac you can open a URL with a tel:// scheme too which launches FaceTime. This can call via a nearby iPhone any phone number.

I don't know whether this is the case for the iPod models too though.

like image 172
lbrndnr Avatar answered Oct 23 '22 02:10

lbrndnr