You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to make it work using an HTML located within the assets that performs all the AR.js functionalities.
To call it from Angular, I used an iframe like this:
<iframe #iframe src="./assets/ar/ar.html"></iframe>
and for communication between the HTML and Angular, I used an @HostListener('window:message', ['$event'])
All of this worked perfectly, for example, when using it in an Ionic application on iOS or Web as PWA.
There has a problem has arisen with the requirement of Android 13 SDK 33.
I'm not sure what has happened, but when running an Ionic app on Android, it no longer detects the camera, and an error is raised, stating that camera permission has not been granted, despite using Capacitor plugins that indicate it should be working.
Has anyone who has done something similar managed to get AR.js to work on Android?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I managed to make it work using an HTML located within the assets that performs all the AR.js functionalities.
To call it from Angular, I used an iframe like this:
<iframe #iframe src="./assets/ar/ar.html"></iframe> and for communication between the HTML and Angular, I used an @HostListener('window:message', ['$event'])All of this worked perfectly, for example, when using it in an Ionic application on iOS or Web as PWA.
There has a problem has arisen with the requirement of Android 13 SDK 33.
I'm not sure what has happened, but when running an Ionic app on Android, it no longer detects the camera, and an error is raised, stating that camera permission has not been granted, despite using Capacitor plugins that indicate it should be working.
Has anyone who has done something similar managed to get AR.js to work on Android?
Beta Was this translation helpful? Give feedback.
All reactions