Can an iPhone Web App use the Camera?
Asked Answered
A

3

7

I have a web app and I want to take photos and then upload them to a server. Can this be done with a webapp?

Asdic answered 15/4, 2010 at 18:15 Comment(0)
M
10

[edit] It's now possible, please see answers below.

No, webapp cannot access internal devices. Try PhoneGap to make the gap between your app and the internal devices. But that will compile an application, which need to be distrubuted via the Apple Store.

Macao answered 15/4, 2010 at 18:21 Comment(3)
Problem with that is it's a private beta product and I don't want the entire world knowing about it yet. Just my internal company. Thoughts?Asdic
The Apple SDK allows you to install on you iPhone the application you compiled. Shouldn't be a problem. ;)Macao
This is outdated. You can now do it with @jeff-wei's solutionTholos
L
5

This is now possible with iOS 6 and HTML5.

Using the <input> tag, you can get file input from either the camera or gallery (the familiar "take photo or video, choose existing"). Try:

<input type="file">

this will pull up the aforementioned dialog box of options. You can also add the accept attribute to specify whether you want image or video, like so:

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

Max Firtman has a great article about what you can do with iOS 6 and HTML5 here: http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers

Laurasia answered 11/3, 2014 at 20:48 Comment(0)
M
2

You'll be able to create 'provisioning profiles' for up to 100 different devices to directly install your apps on, without going through the App Store. The install process isn't as straightforward as calling up a URL or downloading something from the App Store, but at least you can limit distribution to specific people without revealing the existence of the app in the public App Store.

Also see iPhone App Minus App Store?

Miniaturize answered 16/4, 2010 at 0:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.