Open sindresorhus opened 1 year ago
Agreed! This would be great!
I’d also love to see this if it’s the reason why me clicking “open using mastodon” just does nothing at all leaving me staring at safari. Other apps seem to work without issue so it left me confused and I had to copy/paste the link into mastodon search.
I wish this was given a higher priority. People quite often RT someone or link to another post. Clicking on the link in the App opens web browser, even if it is a Mastodon post.
The current URL scheme structure is unusable in practice.
With mastodon://status/:id
, you can't know what instance the app is currently signed into, so it's impossible to be selective about which :id
parameters you send. And if you try to use an :id
from another instance, you get an endless spinner in the UI.
I'd really love to include support for the official Mastodon app in a new project, but at this point I have to limit support to Feditext, Ice Cubes, Ivory, Mammoth, and Mona. These apps can open statuses across instances.
Description
Support for custom URL schemes was added in https://github.com/mastodon/mastodon-ios/pull/847, but they require the user to manually transform the URL.
Suggested Solution
It would be useful if you could simply open a link like https://mastodon.social/@sindresorhus/109983299847844086 with Mastodon and the app would show the post in the app.
This is especially useful when running the app on macOS as you could run something like:
My specific use-case is that I'm adding support for Mastodon in my browser picker app.
Other Mastodon clients like Ice Cubes and Mammoth already support this.
Alternatives
No response
Additional Context
If the app does not handle the given URL (for example, URL to settings or something), simply open it in a web view instead. This is what Ivory does.
Don't forget to declare support for URLs by adding this to Info.plist: