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

Link to define custom homeserver/identity server automatically from https://app.element.io/mobile_guide/ does not work on Android 14 #8904

Open
arinc9 opened this issue Sep 16, 2024 · 6 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@arinc9
Copy link

arinc9 commented Sep 16, 2024

It's #5748 but on Android 14 this time. Apparently, this was fixed for Android 12 with #6225.

Your phone model

Nothing Phone (1)

Operating system version

Android 14

Application version and app store

Latest Element app from Google Play

Homeserver

matrix.lpc.events

Will you send logs?

If requested, yes.

Are you willing to provide a PR?

No

@arinc9 arinc9 added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Sep 16, 2024
@bro2020
Copy link
Contributor

bro2020 commented Sep 16, 2024

Pixel 7 Pro has the same problem
App version 1.6.18 and 1.6.20

@sbeach92
Copy link

sbeach92 commented Sep 18, 2024

Same problems with
sony xperia 5 II, android version 12, element version 1.6.20
sony X-preformance, android version 8, element version 1.6.20

So I guess something broked #6225 fix

Fix was undone with #8850: https://github.com/element-hq/element-android/blob/6a8e97820435752cd9b144aedec3137fc71fc80a/vector/src/main/AndroidManifest.xml#L198C1-L205C59

bro2020 added a commit to bro2020/element-android that referenced this issue Sep 18, 2024
@bro2020
Copy link
Contributor

bro2020 commented Oct 2, 2024

#8913
This does not fix the problem.

Screenshots

Screenshot_20241002-082912

Screenshot_20241002-082847

In order for this to work, you need to go into the settings and manually enable the processing of this url. This defeats the purpose of this function

@sbeach92
Copy link

sbeach92 commented Oct 2, 2024

Probably there should be json file:
https://mobile.element.io/.well-known/assetlinks.json
Like in other links there is:
https://app.element.io/.well-known/assetlinks.json

I assume that old fix *element.io was sort of workaround that missing json from mobile.element.io was not needed.

@bro2020
Copy link
Contributor

bro2020 commented Oct 2, 2024

Probably there should be json file

Or the solution lies in a completely different plane...
If you manually substitute app.element.io instead of mobile.element.io, everything works as expected.
https://app.element.io/?hs_url=https%3A%2F%2Fmatrix-client.matrix.org%2F&is_url=https%3A%2F%2Fvector.im%2F
Working URL.
Most likely the problem needs to be solved in the element-web project in this line: mobile.element.io

@bro2020
Copy link
Contributor

bro2020 commented Oct 2, 2024

manually substitute app.element.io instead of mobile.element.io

In order not to wait until the problem is solved, you can manually change the js file on the running element server. In the docker image, the file is located at the path: /app/bundles/42808ff9cf8775a74f27/mobileguide.js
For version: v1.11.79. For other versions, there will be a different path.
In it, find and replace mobile.element.io on app.element.io
Now your personal web server element will correctly process the url:
https://example.com/mobile_guide/
by redirecting the Configure click to the application

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

3 participants