Comment on Is there a Mastodon android app that has the option to open mastodon instances in the app
ada@lemmy.blahaj.zone 1 month 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 1 month 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 1 month ago
it doesn’t report itself as mastodon in the header or something? That would have been useful.
ripcord@lemmy.world 1 month ago
It can’t query this info externally occasionally…?
jol@discuss.tchncs.de 1 month ago
No. It must be in the app already. It’s for security reasons.
GreatDong3000@lemm.ee 1 month ago
Maybe some browser extension for like firefox mobile?
Ephera@lemmy.ml 1 month 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 1 month ago
That’s a good idea