element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.36k stars 713 forks source link

Problem with my own server - Iran #7600

Open kamyargerami opened 1 year ago

kamyargerami commented 1 year ago

Steps to reproduce

Hi

I live in Iran and these days we have protested for freedom and human rights, and the government suspended the international network. We only have access to the internal network of our country.

So I deployed the matrix on my own server to have access to privacy. everything works fine in element web but in the android version, it doesn't load the page when I click on "I already have an account" because you are sending a request to other websites (workaround in comments).

Also when I'm trying to send a voice message or upload anything using android, I wait too much time and after that, it falls. I think this is because you are sending a request to another URL than my own matrix URL.

All of these issues are not in other clients like fluffy chat.

Outcome

I expect that you get homeserver address at the first step and all the requests after that send to my own server.

Your phone model

Xiaomi 11t pro

Operating system version

Android 12

Application version and app store

1.5.7 github

Homeserver

Synapse v1.63.0

Will you send logs?

No

Are you willing to provide a PR?

No

YamatoRyou commented 1 year ago

If I'm not wrong, your client will connect to matrix.org by default when it first starts, but the site is blocked in your location. This will cause your client to get stuck at a certain step for a long time.


  1. Complete the URI below: element://matrix.to/connect?hs_url=https://<your_homeserver_domain_and_port_number>
  2. Convert it to a QR code.
  3. Use the QR code scanner to scan the generated QR code. You will be redirected to your client, and connected to your own homeserver by default.
kamyargerami commented 1 year ago

Thanks, the QR code works for sign in steps.

I still have the upload problem, do you have any recommendations?