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

Deep links doesn't seem to work #7632

Closed
alexander-potemkin opened this issue Aug 1, 2023 · 7 comments
Closed

Deep links doesn't seem to work #7632

alexander-potemkin opened this issue Aug 1, 2023 · 7 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@alexander-potemkin
Copy link

Steps to reproduce

As a follow up for element-hq/element-meta#1946, I'm raising this issue here.

Your use case

What would you like to do?

Provide an option to open a client (desktop, mobile) with prefilled server and, ideally, only a login option (without registration).
I can make all that kind of customizations on web client easily, but for desktop & mobile I need clone, reproduce build, change things, which is all quite resource intense task.

Why would you like to do it?

To provide an option to easily log in to the server for non-tech savvy users.
Something of the kind seems to be at Matrix.org server, but it doesn't work for a customer server.

How would you like to achieve it?

I tried:

  • element://vector/webapp/#/room/%23discuss%3Amyserver.com
  • element://vector/webapp/#/user/@Nickname:myserver.com

None of them works.

Desktop doesn't pick it up on a fresh start (only if it was already started), but when I click login/register, it's back to matrix.org server.
iOS app just ignores that altogether.

So, having one working way to call the client with predefined server and, ideally, option to login (not register), via something like element://vector/webapp/#/room/%23discuss%3Amyserver.com?register=0 would be ideal.

Have you considered any alternatives?

Yes. I've tried to make a custom build (offered to provide it back to Element, but with no luck).

Additional context

That feels an important thing for self-hosted servers.

Outcome

What did you expect?

I would expect iOS client to open with specified server; ideally - with sign-in option, but I understand, it's a feature.

What happened instead?

The client keeps opening on Matrix.org server.

Your phone model

Any

Operating system version

Any

Application version

Any

Homeserver

Any

Will you send logs?

Yes

@alexander-potemkin alexander-potemkin added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Aug 1, 2023
@pixlwave
Copy link
Member

pixlwave commented Aug 2, 2023

@alexander-potemkin Server provisioning is supported via a universal link in the following formats (is_url is optional on both):

https://mobile.element.io/?hs_url=matrix.example.com&is_url=identity.example.com
https://app.element.io/register/?hs_url=example.com

iOS adds a blue open button at the top of the page for these links.

I'm going to close this issue for now as I think this covers what you're looking for.

@pixlwave pixlwave closed this as completed Aug 2, 2023
@alexander-potemkin
Copy link
Author

@pixlwave , apologies for the delay and thank you!

For mobile - yes, it's what I needed, indeed. The only one more question remains is: can I also specify some other flag to skip 'register' and only leave 'login' option?

For desktop - unfortunately it doesn't work - is there some problem with URL probably?

@pixlwave
Copy link
Member

pixlwave commented Aug 7, 2023

can I also specify some other flag to skip 'register' and only leave 'login' option?

We don't have anything implemented like this currently. The register button is always shown if the homeserver supports registration.

For desktop

This is probably a question for https://github.com/vector-im/element-web I thought the app.element.io links used to line up across platforms.

@alexander-potemkin
Copy link
Author

Thank you, I created the ticket at web/desktop.

Just one more thing, if you don't mind: @pixlwave: could Element team be interested in picking up GitHub automated builds for mobile and web/desktop, as I referenced here: element-hq/element-meta#1806 ?

Or it's out of interest for the team and you would rather stick to your workflow (which is mostly about manual build and upload, from what I understood)?

@pixlwave
Copy link
Member

pixlwave commented Aug 29, 2023

Element X is using Xcode Cloud to automate TestFlight and App Store builds. We (the iOS team) very much wanted to move away from manual releases 😅

@alexander-potemkin
Copy link
Author

I can imagine :)
And for how long do you expect to support an 'old' - non-X version?

@pixlwave
Copy link
Member

It will remain a supported product until we're happy we're close enough to feature parity for the majority of users. It is only receiving critical fixes and work requested by customers, so the burden of making manual releases is already significantly reduced 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

2 participants