# Direct camera/mic access on mobile?

**URL:** <https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874>\
**Category:** Feature Requests\
**Created:** [December 14, 2019, 6:19am UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874 "2019-12-14T06:19:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![moses5407](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moses5407/32/2085_2.png) [@moses5407](https://community.glideapps.com/u/moses5407)\
**Post date:** [December 14, 2019, 6:19am UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/1 "2019-12-14T06:19:13Z")

</div>

Looks like you use JS/JSON to build the app(maybe?) so I was wondering if this JS approach to direct, permitted cam/mic access might be a way to include it?

> **[Front and Rear Camera Access with JavaScript's getUserMedia()](https://scotch.io/tutorials/front-and-rear-camera-access-with-javascripts-getusermedia)**
>
> It seems like not so long ago every browser had the Flash plugin to get access to the devices media hardware to capture audio and video, with the help of these plugins, developers were able to get access to the audio and videos devices to stream and...

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [December 14, 2019, 3:33pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/2 "2019-12-14T15:33:25Z")

</div>

Could you tell us what your specific use case is?

---

<div class="post-metadata">

**Author:** ![TimNZ](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/timnz/32/2062_2.png) [@TimNZ](https://community.glideapps.com/u/TimNZ)\
**Post date:** [December 15, 2019, 12:51am UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/3 "2019-12-15T00:51:17Z")

</div>

I did a quick PWA vs Native pros/con for a client on a V1 consumer app (we are going PWA),  
and it seems support for using camera in an IOS PWA app saved/launched from home screen is not supported well.

---

<div class="post-metadata">

**Author:** ![moses5407](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moses5407/32/2085_2.png) [@moses5407](https://community.glideapps.com/u/moses5407)\
**Post date:** [December 15, 2019, 9:21am UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/4 "2019-12-15T09:21:15Z")

</div>

I think there are almost too many to list, the common feature being removing the step of taking a picture outside the app before selecting it for upload.  
The recent FInstagram tutorial would be one example.

Likewise, the ability to capture cam and sound could make WebRTC P2P video chat possible.

---

<div class="post-metadata">

**Author:** ![moses5407](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moses5407/32/2085_2.png) [@moses5407](https://community.glideapps.com/u/moses5407)\
**Post date:** [December 15, 2019, 9:25am UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/5 "2019-12-15T09:25:47Z")

</div>

I believe the methods reviewed in this article work on iOS and Android phones.

There may be some browser limits until safari 11 for iOS is more ubiquitous but browser detection would allow a user notification that their browser (If older Safari) doesn’t support this feature … and suggest an upgrade or switch to Chrome.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 15, 2019, 1:33pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/6 "2019-12-15T13:33:58Z")

</div>

> [@moses5407](#):
>
> removing the step of taking a picture outside the app before selecting it for upload.

I don’t know about IOS, but on Android I am able to choose, from the image picker, if I want to pick an existing picture, or take a new picture. If I take a new picture, it is automatically sent back into the app and uploaded. It’s pretty seamless for me.

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [December 15, 2019, 2:08pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/7 "2019-12-15T14:08:28Z")

</div>

iPhone is different

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [December 15, 2019, 2:23pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/8 "2019-12-15T14:23:31Z")

</div>

No big surprise that Apple doesn’t open up a lot of these features for “generic” apps. They notoriously, whether for monetary reasons or security ones, force developers to jump through hoops to get access to lower level functions of their devices.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [December 15, 2019, 2:50pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/9 "2019-12-15T14:50:00Z")

</div>

iOS lets me choose “Take photo” in the Image Picker. Does that not work for you?

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [December 15, 2019, 2:51pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/10 "2019-12-15T14:51:05Z")

</div>

I was asking what your specific use case is, not what potential use cases could be. Are you working on an app right now that needs one of these features?

---

<div class="post-metadata">

**Author:** ![moses5407](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/moses5407/32/2085_2.png) [@moses5407](https://community.glideapps.com/u/moses5407)\
**Post date:** [December 18, 2019, 3:16pm UTC](https://community.glideapps.com/t/direct-camera-mic-access-on-mobile/2874/11 "2019-12-18T15:16:32Z")

</div>

Ahhh…I was checking the app only on the desktop so didn’t get the camera picker option.  
It works fine on iOS and Android for me.

As for the video recording and WebRTC video chat app usecase, it would be helpful for a remote caching app I’m working on.

In the meantime, I’ve incorporated a user-specific jitsi meet invitation button which works fine.

Would be nice to keep it all within the glideapp, tho.
