Code cracker
Code cracker

Reputation: 3166

How to Restrict the iOS app only for iPhone excluding iPad?

I want to restrict my app only for iPhone. I don't want my app is available for iPad.

Upvotes: 39

Views: 44723

Answers (5)

NSnik
NSnik

Reputation: 49

You cannot restrict permissions to install the application from the AppStore to iPhones only. If your application has already been added to the AppStore and had the ability to install on iPad, then you will not be able to set restrictions only for iPhones.

Even if you set telephony yes in UIRequiredDeviceCapabilities. In this case, you will get an error loading build to the AppStore.

Important: Because you can't add UIRequiredDeviceCapabilities restrictions after an app is in the store, be sure to plan ahead by choosing requirements you will be comfortable supporting indefinitely going forward.

If set TARGETED_DEVICE_FAMILY iPhone, apps will run in emulated mode in iPad

The only way is to add UIRequiredDeviceCapabilities, that allow installation on an iPhone/iPad, before to add app to the AppStore!

Upvotes: 2

JIthin
JIthin

Reputation: 1453

You can't restrict an application to run on iPhone only in the normal way.The iOS is designed such a way that the iPhone apps will run on iPad in 1x resolution .

However if you really want to restrict your app to iPhone , you can achieve this by stating that the app requires feature telephony to work by specifying the same in UIRequiredDeviceCapabilities . This means it will only work on an iPhone.

Upvotes: 20

Wes
Wes

Reputation: 1069

In your info.plist, add the following:

<key>UIDeviceFamily</key>
<array>
  <integer>1</integer>
</array>

1 = iphone and ipod, 2 = ipad

Upvotes: -1

Jim Tierney
Jim Tierney

Reputation: 4105

YES, yes, you CAN, set the UIRequiredDeviceCapabilities stating that the app requires telephony. This means it will only work on an iPhone. Please read more about it from the Apple Documentation here -

UIRequiredDeviceCapabilities - setting conditions so app store knows which devices to allow installation on

Within this page, search for UIRequiredDeviceCapabilites and it will tell you more from there.

I hope this helps anyone with this issue

Upvotes: 27

Infinity James
Infinity James

Reputation: 4735

You can't disable the iPad's ability to run your iPhone app.

Upvotes: 1

Related Questions