How to check Facetime support on iOS devices (hardware test)

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?

0
source share
2 answers

Try using the method canOpenUrlusing the FaceTime scheme as follows:

[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];
+3
source

you can check if the device responds to hasTorch

AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; 
if ([device hasTorch]) { 
//do stuff
}

, , , , , , , , facetime ?

+1

All Articles