# iOS PlayCanvas-AR not showing permission for camera

**URL:** <https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996>\
**Category:** Help & Support\
**Created:** [September 20, 2018, 11:25am UTC](https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996 "2018-09-20T11:25:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aetrix](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/aetrix/32/7215_2.png) [@Aetrix](https://forum.playcanvas.com/u/Aetrix)\
**Post date:** [September 20, 2018, 11:25am UTC](https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996/1 "2018-09-20T11:25:12Z")

</div>

Hello everyone,  
im trying to use Playcanvas-ar project and iframe it in my Ionic App and it all work nice but there is no prompt for me to allow camera to be used, like i can when i go directly on link with my mobile chrome browser. But when i iframe it then after Playcanvas loading screen is loaded nothing happens and i cant use that demo.

Can enyone help with this?

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [September 20, 2018, 11:47am UTC](https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996/2 "2018-09-20T11:47:22Z")

</div>

> [@Aetrix](#):
>
> Ionic App

My guess is that you need to add permissions in the Ionic App project setup? It sounds like more of an issue with Ionic than with PlayCanvas?

---

<div class="post-metadata">

**Author:** ![Aetrix](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/aetrix/32/7215_2.png) [@Aetrix](https://forum.playcanvas.com/u/Aetrix)\
**Post date:** [September 20, 2018, 12:36pm UTC](https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996/3 "2018-09-20T12:36:40Z")

</div>

This is what i did in Ionic:

```javascript
<div style="width:100%; height:100%;">
    <iframe src="https://playcanv.as/p/IfiJFbRk/" frameborder="0" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *" style="width:100%; height:100%;"></iframe>
  </div>

```

then whitelist it in config.xml  
`<allow-navigation href="https://playcanv.as/*" />`

I fount this so i tried with this also

```javascript
<feature name="Camera">
  <param name="ios-package" value="CDVCamera" />
</feature>

```

In xCode i also setup privacy for: Microphone usage, Photo Library addition, Photo library usage, Camera usage.

Did i forget something?

---

<div class="post-metadata">

**Author:** ![Aetrix](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/aetrix/32/7215_2.png) [@Aetrix](https://forum.playcanvas.com/u/Aetrix)\
**Post date:** [September 21, 2018, 11:42am UTC](https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996/4 "2018-09-21T11:42:55Z")

</div>

We will have to wait for Apple to support “MediaStream (aka getUserMedia)” on WKWebView. There’s that… Works on Android perfectly tho.

---

<div class="post-metadata">

**Author:** ![will](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/will/32/4560_2.png) [@will](https://forum.playcanvas.com/u/will)\
**Post date:** [September 21, 2018, 5:22pm UTC](https://forum.playcanvas.com/t/ios-playcanvas-ar-not-showing-permission-for-camera/7996/5 "2018-09-21T17:22:50Z")

</div>

The approach I have seen developers use who are developing for iOS with WkWebView is to write a JS bridge to leverage ARKit. So essentially, you can create a native view that displays the camera feed and then composite a WkWebView over the top that renders your 3D objects.
