Open shrewdlogarithm opened 1 year ago
hey @shrewdlogarithm , Thanks for reporting this. Haven't used this package in a while, but I looked it up and found a solution that works on SO: https://stackoverflow.com/a/69823223/2942294
cd src-cordova
cordova plugin add https://github.com/apache/cordova-plugin-file-transfer.git
cordova plugin rm cordova-plugin-whitelist
I tried to build the default App against current Svelte and Android 11 - as per the guide - and it fails pretty spectacularly so...
I removed the Cordova-Whitelist-Plugin from the project - I believe it's defunct (now part of Cordova itself??) - that allowed the App to build successfully and deploy to the Android emulator - but it didn't actually work, no "deviceready" was being fired...
Digging further - Cordova clearly isn't initialising and the path to "cordova.js" seems to be wrong? Here it's "cdvfile://localhost/assets/www/cordova.js" - changing that to "https://localhost/cordova.js" seems to work but I need to test further...
Svelte and Cordova clearly have issues (default projects copied into Cordova don't really work as you'd expect) so I was hoping this might resolve some issues (or show me workarounds) - I'll report back if I find anything else interesting - if anyone's still here? :)