element-hq / element-hq/element-android

Android 12: Need matrix.to/.well-known/assetlinks.json for API-Link URLs

Open
#5,560 3 comments 1 reaction 0 assignees View on GitHub
A-Deep-link A-Matrix.to O-Occasional S-Major T-Defect Z-AccountResurrection Z-WTF
Dominant language
Kotlin
Stars
3.7k
Forks
917
Avg merge
8d 20h
Merged PRs (30d)
1

Description

### Steps to reproduce

This is actually an Android 12 upgrade requirement. To reproduce, attempt to open an Element URL in a web browser -- nothing happens. Example URL:
https://matrix.to/#/!X--------------BDC:matrix.org/$TE--------------------------------------IKU)

![Screenshot_20220316-154311](https://user-images.githubusercontent.com/25208440/158691948-4ea95566-c597-4063-8285-d7d2cfadd6cb.png)

### Outcome

Because "matrix.to" links would not open in Element on Android 12, I had to manually approve URLs in the Android System Apps Element settings to allow web links to open in Element. After I approved "matrix.to" in the Android System Apps Element settings, the links open correctly in Element.

According to:

https://developer.android.com/training/app-links/verify-site-associations

this happens because the following URL does not exist:

https://matrix.to/.well-known/assetlinks.json

![Screenshot_20220316-153654_2](https://user-images.githubusercontent.com/25208440/158690802-944aba31-ac4e-4e6c-a948-5342a3404825.png)

### Your phone model

Pixel 3a

### Operating system version

Android 12, build SQ1A.220205.002

### Application version and app store

1.4.2 [40104020] (F-f10c67d3), Matrix SDK: 1.4.2 (f10c67d3), olm: 3.2.10

### Homeserver

matrix.org

### Will you send logs?

No

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.