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

UI does not load on ubports phone #54

Closed
ulrichard opened this issue Jan 10, 2019 · 9 comments
Closed

UI does not load on ubports phone #54

ulrichard opened this issue Jan 10, 2019 · 9 comments

Comments

@ulrichard
Copy link

When I try to visit the website of my spark wallet from my phone, the UI doesn't load. Just the three parts of the circles turn around and around.

I think the browser in ubports is the following:
https://github.com/ubports/morph-browser

@JaviLib
Copy link

JaviLib commented Jan 10, 2019

imagen
Same issue, after a second this msg appears. I have checked that the key is the same. The wallet works in the desktop browser only.

@hillelt
Copy link

hillelt commented Jan 18, 2019

I think TLS mode is not working (see #55). Try starting spark with --no-tls and you might be able to connect (albeit security will be an issue).

@shesek
Copy link
Owner

shesek commented Jan 20, 2019

I haven't tested with ubports or morph browser and don't have an easy way to test on them. Does it have some sort of an error console you could look for clues?

@JavierRSobrino Were you able to access it remotely using a desktop browser, or was it from same machine over localhost?

@JaviLib
Copy link

JaviLib commented Jan 20, 2019

@shesek I was able to access the wallet using a browser on a remote machine, but not using the android wallet. I have TLS enabled.

@shesek
Copy link
Owner

shesek commented Jan 24, 2019

@JavierRSobrino Is this with the android app or with the android web browser? If it was with the android app, can you check to see if that works with the browser?

@ulrichard
Copy link
Author

After the last upborts update, it works much better, as long as I am in the local network. This is with TLS enabled.
The rest is probably for another issue.

@JaviLib
Copy link

JaviLib commented Jan 24, 2019

@JavierRSobrino Is this with the android app or with the android web browser? If it was with the android app, can you check to see if that works with the browser?

It worked with Chrome for Android, but not in the wallet app.
I ended up creating a reverse proxy for it and now it works with the app too, but this is a personal solution, the problem remains I think.

@shesek
Copy link
Owner

shesek commented Jan 27, 2019

It worked with Chrome for Android, but not in the wallet app.

This might be related to the self-signed TLS certificate. Android won't let apps communicate with servers that has untrusted TLS certificates, and there's no prompt allowing you to make a security exception like you get with the browser. There are two ways to make the certificate trusted:

  1. If you can point a domain or subdomain at your IP, you can use the LetsEncrypt integration to get a CA-signed certificate that works smoothly everywhere.

  2. You can manually add the certificate to the Android keyring on your device, which would allow Spark to communicate with the existing self-signed certificate.

Another alternative is setting up the connection over a tor hidden service, which other than the security benefits, also makes it much easier to accept remote connections (without setting up port forwarding etc). The downside is that you'll to setup Orbot on your Android and run it alongside the Spark app.

@JaviLib
Copy link

JaviLib commented Jan 31, 2019

@shesek for some reason, adding the certificate to the android keyring didn't worked out. I didn't investigated further because I just used a reverse proxy with letsencrypt in docker, and everything worked like a miracle.

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

4 participants