News for hackers. Stuff that matters.
Re:The iOS Economy, Updated by AndrewKemendo on Monday January 22, 2018 @05:46PM (#16208803)
camera in the browser

How so? Do you mean through UIImagePickerController or AVCaptureDevice?

Even with the latest iOS 11 release I haven't seen AVCaptureDevice available to WebKit anywhere. getusermedia isn't supported and I've yet to see a successful implementation of WebRTC on WebKit [1].

Maybe I missed something. Would be great to be able to do that finally.

[1]https://webkit.org/blog/7763/a-closer-look-into-webrtc/

Re:The iOS Economy, Updated by adamqureshi on Monday January 22, 2018 @07:01PM (#16209436)
we used gravity forms for one gig. On mobile a mobile browser say an iphone, you can take snap a pic with a camera and upload / attach it and send it via the form. That was our basic need / feature for this particular MVP.

i found this article in stakoverflow: In 2015 Google introduced a new approach for developing web apps for Android: progressive web apps. One can create an application that will look like a native application, will be able to use device's hardware like camera and accelerometers, receive push notifications, have a launcher icon, work in offline, store local data, etc.

Re:The iOS Economy, Updated by AndrewKemendo on Monday January 22, 2018 @10:46PM (#16210813)
Yea Android supports all of that including camera through getusermedia, iOS doesn't.
Re:The iOS Economy, Updated by adamqureshi on Monday January 22, 2018 @11:10PM (#16210924)
So i tested the form. OnClick attach a pic / or take a pic in iOS i took a pic and attached and on submit it sent the form with image to the email the form was going too. Is that not it?
Re:The iOS Economy, Updated by AndrewKemendo on Tuesday January 23, 2018 @01:15AM (#16211419)
Yea that's UIImagePickerController, but obfuscated by whatever other wrapper you're using. You can do that to transfer images or upload images through iOS, basic file picker/transfer basically but doesn't invoke any other frameworks or deeper integration. What you can't do is get the video feed into a WebKit browser. It's a business decision Apple did to prevent image based Web Apps on iOS. They want them all on native apps, though we might see it with WebRTC integration.
Re:The iOS Economy, Updated by adamqureshi on Tuesday January 23, 2018 @06:54AM (#16212834)
oh gotcha, yes my use case was very simple. in iOS chrome / safari after filling out basic form fields, name / email then upload pic / attach image ( pulls up the camera / attach image icons) Select or take a pic with camera Upload / attach pic Send / Submit form.

That was all i needed. Then that image comes through email. For a local messenger start up in NYC. Pick up / delivery. Customer needs upload a pic of the bags being picked up then delivered to destination. All local / same day stuff.

I maybe didn't need all the other stuff, just enough to solve this specific problem in a mobile web app. Customer was happy with the demo i showed them. Got the gig.