matrix-org / matrix.to

A simple stateless privacy-protecting URL redirecting service for Matrix
http://matrix.to
Apache License 2.0
886 stars 189 forks source link

Adding a /.well-known/assetlinks.json file for android deeplink verification #314

Open MTRNord opened 1 year ago

MTRNord commented 1 year ago

For apps targeting newer android versions, the playstore seems to require verification of domains to allow deeplinking. If this is not happening, there is an error like shown here https://developer.android.com/training/app-links#manage-verify

Additionally they warn about this:

Note: On Android 11 (API level 30) and lower, the system doesn't verify your app as a default handler unless it finds a matching Digital Asset Links file for all hosts that you define in the manifest.

https://developer.android.com/training/app-links/verify-android-applinks#multi-host

To verify an app, you need the app's fingerprint in a json. This is described within https://developer.android.com/training/app-links/verify-android-applinks#web-assoc

This page is somewhat a special case compared to what android intended, so it probably makes sense to have the json file within this repo so that the community is allowed to add their app.

It would be great if this can be somehow figured out. I assume this also may become relevant for the Element apps, since they might or will hit this issue too on newer android apps.

SoniEx2 commented 4 months ago

this is a non-issue if your app supports fedilinks instead. consider supporting fedilinks instead.