I want to check if the iOS device I'm working on supports Facetime calling. I do not want to check the version of iOS on the device, rather, if the device has hardware support to initiate a Facetime call.
For example: I have an iPad 1 with iOS version 4.0 and higher, but if I don't have a camera (or front camera), the Facetime call should not start. How can i do this?
Try using the method canOpenUrlusing the FaceTime scheme as follows:
canOpenUrl
[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];
you can check if the device responds to hasTorch
AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; if ([device hasTorch]) { //do stuff }
, , , , , , , , facetime ?