I am looking for launching native iOS device Camera from a Pure web app(launching thru Safari). Not through any Native or Hybrid frameworks. I wondered how this paste html page http://pastehtml.com/view/chh0dj31e.html is able to directly access iOS device camera through a pure web application, if i launch this link in device safari. I want to develop the same way.

If anyone has any idea, could you share it with me please?

有帮助吗?

解决方案

Use the following input tag

<input type="file" accept="image/*" capture="camera">

it will show 2 option with take photo and chose existing.

for more info see this link

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top