Camera not active in Ionic-iOS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
When using aframe in an Ionic based application, the camera is not started. Also the following error is given in the console log:
[Error] Not allowed to load local resource: blob:blobinternal:///480951e5-1001-423b-837f-2f6d1572d469
Some more details about the project, by default on iOS there is no webrtc when using Ionic. We use the iosrtc plugin to solve this. I can open the camera when using the rtc api (getUserMedia etc).
Ionic/iOS uses wkwebview, this view does have issues with getting local files. (see https://ionicframework.com/docs/v3/wkwebview/). I suspect this is related to the problem, but am not sure..
When plotting a simple box, I can see the box, but not the camera view.
- A-Frame Version: 0.9.1
- Platform / Device: Ionic/iOS
- Reproducible Code Snippet or URL: https://github.com/abroekhuis/ionic-aframe
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproducible project at https://github.com/abroekhuis/ionic-aframe and compare A-Frame's camera behavior with the working getUserMedia/RTC API path. Investigate the reported blob: URL error and WKWebView local-file behavior; done means the camera view starts in Ionic/iOS without that console error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100