We can test by device iOS version will support this feature or not. But, we can upgrade the iOS version to 3G devices also, it doesn't have Front camera. So, the simple way to test the application is given below, it help us to validate the feature.
BOOL val = [[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];
NSLog((val)?@"Yes":@"NO");
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:(val)?@"Yes":@"No" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
[alert show];
[alert release];
if(val){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"facetime://5555555555"]];
}
No comments:
Post a Comment