Open xplosionmind opened 3 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.
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.
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.