Determining Whether the User Can install apps

Hi,


I'm trying to open the app store in programatically and when the device restriction for "Installing apps" is on, it won't do anything.

These are the things that I've tried:

  • canOpenURL:[NSURL URLWithString:@"itms-apps://"]] returns YES
  • canOpenURL:[NSURL URLWithString:@"itms://"]] also returns YES


I want the user to be forwarded to our product web site in case app store cannot be opened (note that it's a normal website not an itunes url).


How can I know if the installing app restriction is applied?


I know for in-app purchases you can use

[SKPaymentQueue canMakePayments]

which basically reflects if the have possibly disabled in-app purchases.


So what is the synonym to the latter for installing apps?



Thanks.

Determining Whether the User Can install apps
 
 
Q