Comment on Is there a Mastodon android app that has the option to open mastodon instances in the app
ada@lemmy.blahaj.zone 8 months ago
There is no easy way to implement it at the app level, because apps have no way of knowing whether any given link is a mastodon link or not
Ephera@lemmy.ml 8 months ago
Yeah, you would have to maintain a list of all Mastodon instance domain names, and this list would need to be baked in at build time of the app, so updating it requires updating the whole app and there’s no way to dynamically detect that this link is a Mastodon link.
This isn’t to say that it can’t be done, Newpipe does this for Invidious/Piped instances, but yeah, it’s a good bit of work…
FiskFisk33@startrek.website 8 months ago
it doesn’t report itself as mastodon in the header or something? That would have been useful.
ripcord@lemmy.world 8 months ago
It can’t query this info externally occasionally…?
jol@discuss.tchncs.de 8 months ago
No. It must be in the app already. It’s for security reasons.
GreatDong3000@lemm.ee 8 months ago
Maybe some browser extension for like firefox mobile?
Ephera@lemmy.ml 8 months ago
What I could theoretically imagine, is that an extension could give it a custom URL scheme, like
mastodon://mastodon.social/v1/…
, and then the various Mastodon apps could register an intent/open handler for that. But yeah, again, quite a bit of effort.Alternatively, the apps could offer a secondary Share-action, which tries to open the link instead of creating a post from it…
GreatDong3000@lemm.ee 8 months ago
That’s a good idea