Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to open mastodon links in app (Is that doable)? #380

Closed
Andre601 opened this issue Nov 18, 2022 · 4 comments
Closed

Option to open mastodon links in app (Is that doable)? #380

Andre601 opened this issue Nov 18, 2022 · 4 comments

Comments

@Andre601
Copy link

From what I understand can apps register domains to be handled by them, so that when you open a certain domain it gets handled by the app (i.e. GitHub.com URLs would open the GitHub App if installed).

With Mastodon, there is obviously the issue that there isn't just one single URL you can open to see post, but several ones...
Tho, is there any possibility to add this functionality to the Android app (Open links to posts, profiles, etc in the App rather than browser) itself? Based on my limited knowledge would I assume no, but you never know.

If that is possible would it most certainly be a useful thing to have, as you don't have to login to your account or switch it in browser...

@BluePixel4k
Copy link

Similar to #110

@mattwelke
Copy link

It sounds like #110 described the UX issue and this issue describes a probably technical reason for the issue to occur.

This does make sense to me. I vaguely remember from doing Android development a few years ago that it had ways for you to make your app open certain kinds of links. With Mastodon, it makes sense that the links are HTTP[S], and you'd have to by the domain, not the protocol. And it can be any domain. But how about, as a quick win, the app automatically adds the domain of the server you log the app into as a domain recognized as Mastodon, and those links would be opened in the app? Maybe it could even go further than that. It could add the domain of the server you log the app into, and also the domains of the servers that server federates with.

I think those are some pretty safe assumptions for the app to make (based on my admittedly limited Mastodon/ActivityPub knowledge so far).

@kolAflash
Copy link

@Andre601
Was this meant about how links open IN THE MASTODON APP, or FROM ANOTHER APP?

 

If it's from another app:

This is kind of an issue for all self / on premise hosted software. Mastodon, Nextcloud, PeerTube, ...
Nevertheless some apps solved it at least partially by registering for any domain *. Sometimes narrowed down by certains strings behind the slash /. On some OS versions the user needs to enable this manually in the OS, but at least it's possible.

At the Fediverse app does this for Mastodon.
https://framagit.org/tom79/fedilab

The NextCloud app does this for NextCloud instances.
(altough there are minor problems)
nextcloud/android#1069

For PeerTube there's a proposal of a URL redirection service. Altough I'm not sure if I like that idea.
Chocobozzz/PeerTube#1540

@Andre601
Copy link
Author

Please move discussion to #110.
The issue is closed for a reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants