This shows how to use an embedded web working so you don't have to worry about the fact that Cordova or Capacitor apps are not running in a "https" context.
See the echo-web-worker.service.ts
file for details along with the code for the home
page.
- clone this repo
npm i
npm run build
npx cap open android
(or ios)