element-hq / element-hq/element-android
Android 12: Need matrix.to/.well-known/assetlinks.json for API-Link URLs
- 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)

### 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

### 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
Assessment
This issue has not been assessed yet.