I am using iPhone 4 running iOS 7.
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"facetime://phoneNumber"]];
returns YES .
but
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"facetime://phoneNumber"]];
returns NO .
I am not able to figure out what is the problem. In iPad it is working fine.
Thanks to Wain ! I checked FaceTime configuration on device, it was not enabled. I enabled it by going into Settings->General->Restrictions on iPhone 4(running iOS 7) and finally openURL returned YES and FaceTime call was initiated.
I wonder if there is some api which tells that if FaceTime is enabled or not?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.