PWA requestPermissionsAsync is not a function

Hi everyone!
I’m trying to build a pwa using BarcodeScanner. Its run perfectly in localhost Expo environment and with android apk deployed. But, when I run build:web and host in a server, the permission request doesn’t work. It returns the exception “requestPermissionsAsync is not a function”. There is some aditional step to configure service-works or app.config?
Thanks in advance.