I have a question about App submission regulation to app store. my client has 2 system requirements in design documents first they want to target device iPhone 8 above seconds they want to target iOS 11 above. for OS I found a way to target iOS 11 above using the deployment target to iOS 11. my problem now comes from hardware side I have a couple of ideas
- use device compatibility matrix the mean using the iPhone NFC(iPhone 7 and above has it ipad devices don’t have NFC ).
- use an open source library like DeviceKit GitHub - devicekit/DeviceKit: DeviceKit is a value-type replacement of UIDevice. see the code
code from viewDidAppear
override public func viewDidAppear(_ animated: Bool)
{
super.viewDidAppear(animated)
showLoginView()
let alertController = UIAlertController(title: "Foo", message: "Bar", preferredStyle: .alert)
let groupOfAllowedDevices: [Device] = [.simulator(.iPhone8),.simulator(.iPhone8Plus),.simulator(.iPhoneX),.simulator(.iPhoneXs),.simulator(.iPhoneXsMax),.simulator(.iPhoneXr)]
alertController.addAction(UIAlertAction(title: "OK", style: .cancel, handler: nil))
let device = Device()
print(device)
if device.isOneOf(groupOfAllowedDevices) {
print("allowed devices")
}
else{
present(alertController, animated: true, completion: nil)
}
}
I want to ask to do apple will reject the app submission if we prevent users how have the hardware not match the system requirements iPhone 8 and above?