0

Possible Duplicate:
Can I restrict my iPhone app from being used by iPhone3G’s?

I have build an application for IOS and it runs fine on IPhone 4 (and above) and all IPads. Just the 3GS seens to lack power to run it well. Can i exclude the app for these devices?

I have found using UIRequiredDeviceCapabilities and http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html to limit apps using required Capabilities. But i can not find something to just exclude the 3GS. Does anyone know ?

2
  • @JoachimIsaksson, I think, you quote the wrong link. That question is about iPhone 3G and not iPhone 3GS.
    – iDev
    Nov 21, 2012 at 8:43
  • 2
    it is not a duplicate as this is for 3GS while the possible duplicate is for 3G
    – TobiHeidi
    Nov 22, 2012 at 8:29

1 Answer 1

5

Add UIRequiredDeviceCapabilities key to info.plist file and front-facing-camera as required value. If I am correct, 3GS doesn't have a front camera. Here is the apple documentation with all possible values. As mentioned by TonyMkenu in comments, check this link for UIRequiredDeviceCapabilities and Device Compatibility Matrix

7
  • You are correct, I own a 3GS and it doesn't have one.
    – borrrden
    Nov 21, 2012 at 8:48
  • do all other IPhones (4 and above) have font facing cameras ? What will Apple say to this kind of hack?
    – TobiHeidi
    Nov 21, 2012 at 9:08
  • 1
    UIRequiredDeviceCapabilities and Device Compatibility Matrix: blog.manbolo.com/2012/10/30/…
    – TonyMkenu
    Nov 21, 2012 at 9:11
  • @TobiHeidi, This is not a hack. It is provided by Apple to make sure that the app will not run in a device which doesnt have this feature. You just can use it in your case as well. And yes, all iPhones from 4 and above has front facing cameras. You can confirm it by just googling for the iPhone devices and features.
    – iDev
    Nov 21, 2012 at 9:11
  • 1
    There is no "kind of hack" :) ..Is in Apple documentation, dude :)
    – TonyMkenu
    Nov 21, 2012 at 9:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.