# Camera access problem in Discourse App for iOS

**URL:** https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991
**Category:** Bug
**Created:** [July 28, 2017, 5:10am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991 "2017-07-28T05:10:49Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![mecapeca.lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mecapeca.lee/32/75993_2.png) [@mecapeca.lee](https://meta.discourse.org/u/mecapeca.lee)
#### Post date: [July 28, 2017, 5:10am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/1 "2017-07-28T05:10:50Z")

</div>

I found camera issues when I upload captured image with camera directly.  
On the contrary, mobile app for Android is very well work.  
I tested it using Discourse Version 1.1.0 n iOS 10.3.3.

 ![camea](https://global.discourse-cdn.com/meta/original/3X/2/9/291555262d85783f785c313b997ed1629744a731.jpeg)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 28, 2017, 8:14am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/2 "2017-07-28T08:14:33Z")

</div>

Indeed good catch, looks like our app needs camera access even if it happens inside safari.

I will track it here: [https://github.com/discourse/DiscourseMobile/issues/32](https://github.com/discourse/DiscourseMobile/issues/32)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 28, 2017, 10:38am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/3 "2017-07-28T10:38:27Z")

</div>

Until we release the new version, workaround:

- take your picture by launching `camera.app`
- in `discourse.app`, upload picture from library instead of camera

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 29, 2017, 6:28pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/4 "2017-07-29T18:28:53Z")

</div>

Ok, pretty sure it’s an iOS bug. I have pushed some changes to be sure we are requesting correct permissions, but it doesn‘t change anything. I will try on iOS11 when I can, I think it will work.

---

<div class="post-metadata">

### Author: ![willemb2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/willemb2/32/91608_2.png) [@willemb2](https://meta.discourse.org/u/willemb2)
#### Post date: [March 8, 2018, 8:36pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/5 "2018-03-08T20:36:03Z")

</div>

We just started a pilot with Discourse an ran in to this bug, tested with Discourse app version 1.2.1 and iOS 11.2.6 on several iPhone models. I reinstalled the app making sure I allowed it access to the camera.  
This will not help with acceptance of Discourse in our community. People are used to this method of inserting photo’s from apps like Facebook and WhatsApp.

It works fine on Android 6.x and 7.x phones.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 8, 2018, 9:26pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/6 "2018-03-08T21:26:28Z")

</div>

We got to get this sorted, do you have it fixed in your local state?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [March 8, 2018, 9:34pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/7 "2018-03-08T21:34:47Z")

</div>

Yes I have been tracking this and…

> **Safari**  
> _Resolved Issues_  
> • WebApps saved to the home screen and webpages in SafariViewController can  
> now use the camera to capture images. (35542231)

This is in the release note of iOS 11.3 beta, so it should work once 11.3 is out.

[iOS\_11.3\_beta\_4\_Release\_Notes.pdf](https://global.discourse-cdn.com/meta/original/3X/2/d/2db1de99555607d4d64fc7b765abf812bb487066.pdf) (151.2 KB)

---

<div class="post-metadata">

### Author: ![willemb2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/willemb2/32/91608_2.png) [@willemb2](https://meta.discourse.org/u/willemb2)
#### Post date: [March 8, 2018, 11:45pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/8 "2018-03-08T23:45:31Z")

</div>

Guess what? If I ignore your app and use Firefox on iOS, open my Discourse forum I, it all looks exactly the same. I press Upload, chose “Take Photo or Video” and it works!

Why is your app leaning on Safari? I don’t work on Apple devices very often, but when I have to, the first thing I always do is install a normal browser.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 9, 2018, 12:05am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/9 "2018-03-09T00:05:40Z")

</div>

> [@willemb2](#):
>
> I don’t work on Apple devices very often, but when I have to, the first thing I always do is install a normal browser.

Hmmm on Apple iOS you are always using Safari like it or not. Google Chrome in iOS uses Safari rendering engine and Javascript engine as does Firefox and all the rest.

---

<div class="post-metadata">

### Author: ![willemb2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/willemb2/32/91608_2.png) [@willemb2](https://meta.discourse.org/u/willemb2)
#### Post date: [March 9, 2018, 10:45am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/10 "2018-03-09T10:45:35Z")

</div>

To avoid any chance of misunderstanding, this is where we start:

 ![iOS%20foto](https://global.discourse-cdn.com/meta/original/3X/0/5/05b578f39bcba314c168d9099c88808a68d1febb.JPG)

That works in Firefox, not in your app which apparently launches Safari.

> [@sam](#):
>
> Google Chrome in iOS uses Safari rendering engine and Javascript engine as does Firefox and all the rest

That adds to my layman’s amazement about this function working in Firefox. But don’t worry, we’ll just wait for iOS 11.3 to become live.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 9, 2018, 10:49am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/11 "2018-03-09T10:49:12Z")

</div>

Did you read [Camera access problem in Discourse App for iOS - #7 by j.jaffeux](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/7) it is not working cause of an Apple bug that will be fixed

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 9, 2018, 10:49am UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/12 "2018-03-09T10:49:25Z")

</div>

Refer to this article:

> **[New Chrome for iOS is finally as fast and stable as Safari](https://arstechnica.com/gadgets/2016/01/new-chrome-for-ios-is-finally-as-fast-and-stable-as-safari/)**
>
> Switching from the old UIWebView to iOS 8's WKWebView promises big benefits.

It is not possible to ship another browser on iOS. Apple won’t allow it. What you call “Firefox” or “Chrome” on iOS, is a thin wrapper around the internal `WKWebView` which is Safari.

> On iOS, Apple has never allowed third-party browsing engines. **Developers can build browsers, but they’re always just wrappers for the platform’s Webkit-based first-party engine.** The oldest API for this in iOS is called UIWebView.

See above.

---

<div class="post-metadata">

### Author: ![willemb2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/willemb2/32/91608_2.png) [@willemb2](https://meta.discourse.org/u/willemb2)
#### Post date: [March 9, 2018, 12:16pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/13 "2018-03-09T12:16:27Z")

</div>

Thanks Jeff, I’m learning about browsers and web-apps and I already new about Apple’s arrogance.

But look at it through the end-user’s eyes: he/she is told to install an app called “Discourse app”. In that app is a button “Take photo or Video” that is familiar to them because they use it every day in other apps. But it doesn’t work in this app. That is killing to their appreciation of it. Even if there are workarounds. Even if I tell them a dozen times that Apple is the bad guy here. They will compare it with their apps from Twitter, Facebook , WhatsApp etc. That’s not fair, but they will do it anyway.

From the first answer in this topic I understand that this bug was already known in July 2017. I would have left that button out of the app. But I realize that on the coding level it could be horror what I’m saying now 😱 Anyway, again: iOS 11.3 is nearly there and we still have time until our evaluation.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 9, 2018, 12:31pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/14 "2018-03-09T12:31:19Z")

</div>

I guess

- This issue only applies to live camera shots, not uploading existing pictures one has already taken

- Limitation only applies to the app, but Discourse does not need an app, works fine in any mobile browser

So the impact area is quite narrow. Glad to hear 11.3 has a fix though.

---

<div class="post-metadata">

### Author: ![willemb2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/willemb2/32/91608_2.png) [@willemb2](https://meta.discourse.org/u/willemb2)
#### Post date: [March 14, 2018, 2:08pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/15 "2018-03-14T14:08:47Z")

</div>

@j.jaffeux I just tested with iOS 11.3 public beta 5 and it works!

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [March 14, 2018, 2:21pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/16 "2018-03-14T14:21:47Z")

</div>

Thanks for testing it and letting us know! Appreciated. Glad to hear it too.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [March 14, 2018, 2:29pm UTC](https://meta.discourse.org/t/camera-access-problem-in-discourse-app-for-ios/66991/17 "2018-03-14T14:29:48Z")

</div>

iOS bug, fixed by iOS 11.3
