Ionic Capacitor Android app

I have an Ionic project that uses AR.js. The web app works as it should, the camera and all working and im trying to create an android native app. I am using InAppBrowser to do so but there is a problem where i get and error saying ''Permission denied" when it is trying to run the AR and the camera doesn’t show as intended. How can I give access to the camera? I’ve tried the plugin ‘AndroidPermissions’ as well as adding to the AndroidManifest.xml but still nothing. Thanks!