Search code examples
ioshtmlcordovaios9

Cordova iOS 9.2 - photo capture


I'm trying to take photo from Cordova built iOS app:

<input id="imageInput" type="file" accept="image/*">

In simulator and earlier iOS versions (7, 8) it work perfect - you can take photo from camera or choose existing from library. The problem is in app on iOS 9.2 it fails - you can see "Cancel" option only.

I tried also

<input id="imageInput" type="file" accept="image/*;capture=camera"> and <input id="imageInput" type="file" accept="image/*;" capture="camera">

but there is the same result


Solution

  • I have updated xcode to the latest version and it is working now