element-hq / element-hq/element-android

For custom servers, allow users to connect by scanning a QR code in Element.

Open
#5,097 3 comments 1 reaction 0 assignees View on GitHub
A-Onboarding A-Signin A-Signup T-Enhancement
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Your use case

#### What would you like to do?
Avoid manual input when user logs in to some custom server with lengthy address.

#### Why would you like to do it?
To a certain extent, it saves the time consumed by configuring the server.

#### How would you like to achieve it?
As shown in the figure below, add an entry on the "Select Server" or "Enter Custom Server Address" page to allow users to scan the QR code.
If the parsing result of the QR code is the following address, it will automatically connect to the specified URL.
`https://mobile.element.io/?hs_url=https://example.com:[port]`
![{12AF2A75-4FC8-B789-2355-2F0061F29070}](https://user-images.githubusercontent.com/48104960/151667919-d9bf422c-c477-4311-80a1-7f1db3a099ed.png)
![{30790DF8-77A9-B4A1-E273-7158316C17F6}](https://user-images.githubusercontent.com/48104960/151667926-cac8b43d-8e36-4c74-af35-c1627095d9a3.png)

### Have you considered any alternatives?

I'm currently using a third-party QR code scanner to scan `https://mobile.element.io/?hs_url=https://example.com:[port]` and call Element to parse this link.
The disadvantage of this solution is that it requires additional installation of third-party scanners.

### Additional context

n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.