An app used SMS functionality, how to publish the app to disallow ipod touch user download
I used some code like below:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"开发者_运维知识库sms://123"]];
- what would happen if it runs in ipod touch
- how to target iphone user only when publish the app to the store.
In your app's Info.plist
file, set the UIRequiredDeviceCapabilities
property to contain sms
as one of the keys. The App Store will handle whether or not to present your app to which devices that users browse the App Store with, and iTunes will know which devices it can sync your app to and which it can't.
You need to update your applications info.plist file. It lets you restrict the application to certain devices, OS:es etc.
Look at the UIRequiredDeviceCapabilities property which allows you to even specify that the device requires SMS :)
精彩评论