0

I want to publish an application whose SMS feature to be disabled when running on iPods. I know I have to declare the required capabilities of the device into info.plist, but I wonder if I can ignore the declaration of the SMS capabilities on that file but still being able to use it after detecting the device type in my app.

<key>UIRequiredDeviceCapabilities</key>
<array>
<string>wifi</string>
<!--string>sms</string-->
<string>still-camera</string>
</array>

Thanks

Jorj
  • 2,495
  • 1
  • 19
  • 12
  • [this link might halp you....][1] [1]: http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk – koti Jul 13 '11 at 08:46

1 Answers1

3
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"sms:11111"]]){
    //do stuff for sms
}else{
    NSLog(@"I don't suport sms");
}
Alex Terente
  • 12,006
  • 5
  • 51
  • 71