What Cordova plugins actually have a working/thorough `browser` implementation?

There are now two valid ways to build a web app or PWA with Ionic:

  1. ionic build
  2. ionic cordova build browser

(Note that the second one only works by accident and is not supported or advised by Ionic team!)

The second has the advantage that some (!) Cordova plugins are also available for the browser platform, and so some “native equivalent” functionality can be used in the web app / PWA quite easily - sometimes even via Ionic Native.

Does anyone know which Cordova plugins actually have a good, thorough working browser implementation?

For example:

Do you have more experience with other Cordova plugins on the browser platform?

Here is a list of the download numbers of core Cordova plugins that I found somewhere:

The Camera plugin implementation for Browser platform is unusable for production apps. It puts a new raw html ‘open’ button on screen every time the api to open an image is called and user is expected to click on that button ‘again’ to get to the actual open operation. It is at best at a level where it can be used to test apps in browser by developers and to not let the code throw JS errors in browser.

All this can be fixed, its not a limitation of web apis, just that the camera plugin’s browser code isn’t doing a good job. (The button can be hidden (low z-index), not added repeatedly, and its click triggered via JS, etc…).

The geolocation plugin effectively uses the standard web api and only kicks in if the browser does not support it. Effectively making it fully support the browser platform.

This API is based on the W3C Geolocation API Specification, and only executes on devices that don’t already provide an implementation.

1 Like