Work with Angular Ionic PWA and Native #583
Unanswered
GVAMDaniel
asked this question in
Help
Replies: 1 comment 1 reply
-
@GVAMDaniel Did you get it to work? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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