-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Android app v0.2.11 not able to make unencrypted connections #132
Comments
Thanks for the report. I can't seem to reproduce this on my android, but I'll give this a try with a few more devices and report back. Are you connecting via http, https or onion? I recently updated the android sdk target version from 27 to 28, perhaps this affected something? The v0.2.11 apk published on github releases should be identical to the one on the Play Store, except for still targeting sdk version 27 and not 28. Could you give this a try? Also, I'm wondering if it might related to this by any chance? (though, this would get your server connection details forgotten, but shouldn't prevent it from working if you re-fill them) |
I run spark-wallet with
I get: Sorry, this page doesn't exist! I installed v0.2.10 instead of v0.2.9 and that one also works. By the way: I changed |
You definitely shouldn't be connecting over the public internet without using TLS or onion... 😱 Have you tried setting up an hidden service with It appears like the issue definitely is related to targeting android sdk version 28. From "An Update on Android TLS Adoption":
Looks like allowing unencrypted traffic now requires setting some explicit network security configurations. I'll look into doing this with the Cordova build process that spark uses. |
Looks like this should do the trick: https://stackoverflow.com/a/56715421/865693 |
Well, this issue is still open.
As far as I understand it, I then need to run tor on my phone. That's a bit too much. |
Setting up Orbot on Android isn't too bad, I've been using it for quite some time on my device. If you don't want to use Orbot and can't get the built-in TLS to work (I'm not sure why it doesn't for some people and wasn't able to reproduce this), I would still advise to look into some other solution for encryption - an nginx reverse proxy in front of the spark web server, ssh tunnel, vpn, or something similar. Even though I don't recommend this, I'm working on a solution to allow making unencrypted connections. At the very least, its useful for development and testnet/regtest demonstrations. Will hopefully have something ready soon. |
Glad we've figured out the issue. Without the |
Reopening until @sumBTC / @k3tan172 confirms this works (will shortly be released as v0.2.12). |
I released v0.2.12, should shortly become available in the Play Store. @sumBTC @k3tan172 can you give this a go? |
Yes, |
Can confirm, we're good here. Thanks for your help! |
Great! Thank you for confirming. I do still recommend you to look into setting up something else to take care of encryption. You can try following the instructions here to setup nginx as a reverse proxy with tls. If you're running into trouble, feel free to ping me on freenode (same nick) and I'll gladly help. |
The moment the spark-wallet App on my android (version 9) phone updated to version 0.2.11, it was no longer able to connect to my server. Spark-wallet still worked in a browser. I went back to spark-wallet App version 0.2.9 and everything is working again. This has nothing to do with the latest version of c-lightning (0.8.0) which only requires one to run spark-wallet with
--ln-path ~/.lightning/bitcoin
on the server.See also this closed issue
The text was updated successfully, but these errors were encountered: