colouredFunk
colouredFunk

Reputation: 788

(iOS) Navigator.mediaDevices not present in your browser error with ionic and aframe

I can't get AR.JS or Aframe to work with Ionic on iOS.

I get the following error Webcam error: WebRTC issue-! Navigator.mediaDevices not present in your browser when trying to build for iOS. Is there something I'm missing?

I've followed this example https://www.joshmorony.com/augmented-reality-in-an-ionic-angular-pwa/

Upvotes: 2

Views: 2918

Answers (1)

Diego Marcos
Diego Marcos

Reputation: 4585

Some APIs like getUserMedia are not available in iOS WebViews (that I suspect Ionic uses). Those APIs are only availbe in Safari proper. More info: https://github.com/aframevr/aframe/issues/3892

Upvotes: 3

Related Questions