iOS PlayCanvas-AR not showing permission for camera

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?

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?

This is what i did in Ionic:

<div style="width:100%; height:100%;">
    <iframe src="" frameborder="0" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *" style="width:100%; height:100%;"></iframe>

then whitelist it in config.xml
<allow-navigation href="*" />

I fount this so i tried with this also

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

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

Did i forget something?

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

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.