Cordova Slack Digest

Wed, 16 Mar 2022 08:26:24 GMT

User count: 4687

Join the conversation at slack.cordova.io

Channel #general (2 messages)


Tue, 15 Mar 2022 10:46:45 GMT

@mathewp.94 says

Just double checking the schemes/protocols of cordova-android/cordova-ios:

  • By default we use <https://localhost> for Android, as of cordova-android v10-ish (which used to be file:///android_asset/www/index.html in earlier versions)
  • <app://localhost> for iOS (cordova-ios v6.2.0)

Tue, 15 Mar 2022 10:52:18 GMT

@mathewp.94 says

(I wrote a new blog about these but I‘m forever paranoid that I’ve missed gotten some technical detail wrong https://www.mathew-paul.nz/posts/cordova-webview-schemes-and-protocols/)

Channel #cordova-android (2 messages)


Tue, 15 Mar 2022 15:57:37 GMT

@mario.kurzweil says

hi guys 🙂

i updated from cordova-android 9.x to cordova-android 10.1.1 . First of all I got a CORS error which I solved by this thread: https://github.com/apache/cordova-android/issues/1354#issuecomment-921752541. I changed my config.xml and added &lt;preference name="AndroidInsecureFileModeEnabled" value="true" /&gt;

I’m still getting following issue: DevTools failed to load source map: Could not load content for file:///android_asset/www/lib/bower_components/bootstrap/dist/css/bootstrap-theme.css.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for file:///android_asset/www/css/readmode_app.css.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for file:///android_asset/www/lib/angular-1.8.1/angular.min.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for file:///android_asset/www/lib/angular-1.8.1/angular-touch.min.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for file:///android_asset/www/lib/angular-1.8.1/angular-cookies.min.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for file:///android_asset/www/lib/angular-1.8.1/angular-route.min.js.map: System error: net::ERR_FILE_NOT_FOUND DevTools failed to load source map: Could not load content for file:///android_asset/www/lib/angular-1.8.1/angular-animate.min.js.map: System error: net::ERR_FILE_NOT_FOUND controllerDevicesOverview.js:13 DevicesOverview: ready! SQLitePlugin.js:175 OPEN database: precachedDevicesData SQLitePlugin.js:106 new transaction is queued, waiting for open operation to finish SQLitePlugin.js:106 new transaction is queued, waiting for open operation to finish SQLitePlugin.js:197 OPEN database: precachedDevicesData FAILED, aborting any pending transactions SQLitePlugin.js:83 Could not open database

The problem is, that it behaves not on every device the same. This occurs on a Nokia with Android 11. Before that I removed the whitelist plugin. Does this maybe cause the error?

plugins: cordova-plugin-androidx-adapter 1.1.3 “cordova-plugin-androidx-adapter” cordova-plugin-background-mode 0.7.3 “BackgroundMode” cordova-plugin-device 2.0.3 “Device” cordova-plugin-dialogs 2.0.2-dev “Notification” cordova-plugin-file 6.0.2 “File” cordova-plugin-fullscreen 1.1.0 “cordova-plugin-fullscreen” cordova-plugin-geolocation 4.0.1 “Geolocation” cordova-plugin-globalization 1.0.3 “Globalization” cordova-plugin-inappbrowser 4.0.0 “InAppBrowser” cordova-plugin-media 5.0.3 “Media” cordova-plugin-network-information 2.0.2 “Network Information” cordova-plugin-screen-orientation 1.4.2 “Screen Orientation” cordova-plugin-spinner-dialog 1.3.1 “SpinnerDialog” cordova-plugin-splashscreen 5.0.2 “Splashscreen” cordova-plugin-statusbar 2.4.3 “StatusBar” cordova-plugin-transport-security 0.1.2 “App Transport Security” cordova-plugin-tts 0.2.3 “TTS” cordova-plugin-x-toast 2.7.3 “Toast” cordova-sqlite-storage 5.1.0 “Cordova sqlite storage plugin - cordova-sqlite-storage plugin version” es6-promise-plugin 4.1.0 “Promise” havesource-cordova-plugin-push 1.0.0 “Cordova Push Plugin” phonegap-plugin-multidex 1.0.0 “Multidex” wifiwizard2 3.1.1 “WifiWizard2”

Tue, 15 Mar 2022 16:10:16 GMT

@norman137 says

> Before that I removed the whitelist plugin. Does this maybe cause the error? the whitelist plugin is deprecated, and doesn‘t support cordova-android@10. The whitelist code has been migrated to the core platform (and renamed to allow list). There are no cordova platforms now that supports the whitelist plugin so it’s safe to uninstall once you have upgraded cordova-android to v10.

What's the location of your sqlite database? The major changes in android 11 is accessibility around the external file system.