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

1

1 Answer 1

3
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"sms:11111"]]){
    //do stuff for sms
}else{
    NSLog(@"I don't suport sms");
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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