Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Had to fix some stuff to make this work - not sure if anyone's still supporting this but here's what I did... #13

Open
shrewdlogarithm opened this issue Nov 22, 2022 · 1 comment

Comments

@shrewdlogarithm
Copy link

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? :)

@syonip
Copy link
Owner

syonip commented Nov 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants