PWA - How to access Cordova plugins in PWA web applications ?

@Judgewest2000 I am sorry but what you said about not being able to run cordova plugins in the browser is incorrect. You can run cordova applications in the browser. It’s up to the plugin whether or not they support the browser platform.

The “browser” is a platform just like “ios” and “android”

For example, I can run Ionic Google Maps in the Browser, and it works perfectly.

The solution is to serve with:

ionic serve --cordova --platform browser

and build with

ionic build --cordova --platform browser

More info here https://github.com/ionic-team/ionic-cli/issues/3043

My above commands work for ionic 4, but it appears it can work for ionic 3 as well.

1 Like