uuttff8 / Remmel

MIT License
99 stars 11 forks source link

Open Lemmy links in Remmel #23

Open xplosionmind opened 3 years ago

xplosionmind commented 3 years ago

When I click on a link leading to a Lemmy instance, it opens in Safari (or in the default browser). Nevertheless, if it is a Lemmy link it should open inside the Remmel app.

This happens also when I click on Lemmy links inside of Remmel itself.

grawlinson commented 2 years ago

The Apollo (Reddit for iOS) app has a Safari Extension that does this, and it has been open sourced. Hopefully the source code can be of some use.

mediaformat commented 2 years ago

Traditional centralized apps can register a handler for the domain of their app, this isn't possible for decentralized apps where instances can exist on any number of domains.

The iOS apps Metatext and Toot! both achieve this by looking at the URL structure of a link. If the link matches (a mastodon URL) then they can GET the link with accept: activity+json header.