3 Replies
      Latest reply on Aug 30, 2017 9:44 AM by PhilEH
      pinch Level 1 Level 1 (0 points)

        I'm toying with an app concept that takes advandtage of the depth map support coming in iOS 11. My only hold-up so far is that there doesn't seem to be a way to restrict downloads of the app to devices that have the dual cameras needed for taking photos with depth maps. It think the UIRequiredDeviceCapabilities key in info.plist would be the perfect place to add that restriction but I don't see a new value for that.


        I'm not a fan relying on a warning message in your description (e.g. "THIS APP ONLY SUPPORTS SUCH AND SUCH DEVICES"). That's never seen by most people, so you end up with a whole load of one star reviews.


        Does anyone see a way to restrict downloads to dual camera devices only?

        • Re: UIRequiredDeviceCapabilities require dual cameras?
          KMT Level 9 Level 9 (15,495 points)

          For now, and since you can't make an iPhone 7/Plus-only app for the store (yet?), I think you can only make it an option and code accordingly. If that's the only thing your app does, then you may be stuck unless you can expand it's overall functionality. Only App Review would know if they'd reject/approve, tho.


          From the docs:


          Cameras/Dual Camera

          Some iOS devices contain a dual camera—two separate back-facing cameras that can work together as a single capture device. When setting up a capture session on a device with an dual camera, you can choose to use only the wide-angle camera, only the telephoto camera, or the dual camera. Choosing the dual camera capture device provides behavior similar to the built-in Camera app—the system automatically chooses which camera to use during capture, and can combine data from both cameras to improve capture output.

          The AVCaptureDevice  devices and devicesWithMediaType: methods are deprecated in iOS 10 and do not provide access to the dual camera device (instead, they provide only the wide-angle camera device). To determine whether a device contains a dual camera and select it for capture, you may either:

          When you use the dual camera capture device, Optical Image Stabilization (OIS), RAW Photo Capture, High Frame Rate (HFR) / Slow Motion Video, and most manual controls are not available. To use these features, specifically select either the wide or telephoto capture device. (For OIS, specifically select the wide-angle camera; the telephoto camera does not support optical image stabilization.)



          Additionally, you may want to file a UIRDC dual camera key request via the bug reporter, adding your report # to your thread for reference.