Santosh
Santosh

Reputation: 99

iOS 8 html input file control black screen when selected "Take Photo" option

Does anybody face problem of black screen when selected the option to "Take Photo" on iOS 8 with html input file control?

For example, if you try http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_fileupload_get

click on "choose file" on iOS 8 (iphone 6 device) select "Take Photo" option, the screen goes black.

Thanks

Upvotes: 4

Views: 2321

Answers (3)

Johnny Cox
Johnny Cox

Reputation: 11

I agree with Giacomo that it is related to the app losing focus, i.e. going into the background. To restore operation, you have to close the app then re-launch. Once another app takes the foreground, the camera stops. At least this is true of PWA apps.

ios 13.4 resolves this.

Upvotes: 0

Daniel Westendorf
Daniel Westendorf

Reputation: 3465

Late to the game, but I was having a similar issue. iOS requires camera access to be over SSL to work properly, otherwise you'll just get a blacked out camera UI.

Upvotes: 0

Santosh
Santosh

Reputation: 99

In case if anybody faces the same problem, enable safari to access camera under Settings>Privacy>Camera. Somehow on my device it is disabled, may be i must have disabled it at some point and forgot it.

Upvotes: 4

Related Questions