Ionic Capacitor native app Camera record video doesn't work

I’m trying to develop an application with an ionic capacitor cross-platform app which have feature record video and take pic options. I’m using the capacitor camera plugin. This works fine on the web, however, when I generate the android app native it does throw permission denied error when trying to record video. However, there are no issues with taking pics. Only when recording video I get this error. Is there any way to fix this problem?