Open PhilippMundhenk opened 1 year ago
I was thinking we could do something similar to https://my.home-assistant.io for Jellyfin. The apps can open these links directly and for the web client it can store a server in localstorage to redirect. We shouldn't create app links that only work for one specific client so it needs to be a organization wide project with proper documentation.
Another related issue is jellyfin/jellyfin-meta#28
App links are supposed to work for one verified URL. Jellyfin instances are hosted on many URLs. So it won't be possible to allow the jellyfin android app to open HTTP(S) jellyfin links for self hosted instances.
So we either need to use an URI with jellyfin://
as described in https://github.com/jellyfin/jellyfin-meta/issues/28 or we need a service like https://my.home-assistant.io/ as described by niels.
Something like https://my.jeyylfin.org/farbklex/web/index.html#!/details?id=81d46b8908ba9f52813b9a875ddb6afa&serverId=8003032799c742b8bb05793cae8a103c
would then link to farbklex' instance which can be opened via the app or browser.
I don't see why the first solution can't work since all we want is the Jellyfin app to open. What the app does with the URL is arbitrary; the devs could ignore it and present the login screen for whatever servers are already configured in the app, the app could be hard-coded to replace the generic domain with the domain of the current logged in server, or a setting could be added to indicate what domain should replace the generic domain.
For example, let's say the devs register applaunch.jellyfin.org as the Android App Link. A hyperlink to https://applaunch.jellyfin.org/web/index.html#!/tv.html would open the Jellyfin app, and then the app would replace 'applaunch.jellyfin.org' with the local server and display the TV show page. A stub page could be hosted at applaunch.jellyfin.org containing the purpose and instructions for use.
It would be great if it were possible to link directly to the Jellyfin app (or parts thereof, like a single collection or item).
I use Heimdall as a portal and would like to provide a direct link to the Jellyfin app, potentially even separate links to separate collections for my users.
Android App Links should enable this, though some coordination with the Jellyfin website team owning the URL might be required to register domain ownership with Google.
Example intent-filter for Main activity:
Potentially relates to #694