Is there any #ActivityPub / #Mastodon URI scheme used in the wild that would allow me to open an ActivityPub account directly in my Android app?
I've seen 'acct' and 'web+ap' mentioned but none seem to be implemented.
The goal is that given a text of "Here is my Mastodon profile acct:daniel@gultsch.social" #Conversations_im can link that directly into #Tusky. (Just like mailto and xmpp URIs open my E-Mail or IM app respectively)
This entry was edited (2 weeks ago)
Marcus Adams
in reply to Daniel Gultsch • • •Daniel Gultsch
Unknown parent • • •@wiktor I understand the concern about bad fallback on the web. I just wish people would be a bit more pragmatic about it and at least add support for reading / opening such URIs. Nobody suggested replace all Follow buttons with web+activitypub: links.
Can we have support for FEP-07d7 in #Tusky and #Fedilab? (cc @Tusky @apps)
It shouldn’t be that hard to implement at least one of the possible URI schemes in #Conversations_im, #Lttrs, #Tusky and #Fedilab. Maybe get @delta on board too?
Fedilab Apps
in reply to Daniel Gultsch • • •Ticket created, we will work on that support.
codeberg.org/tom79/Fedilab/iss…
@wiktor @Tusky @delta
support for FEP-07d7
Codeberg.orgDaniel Gultsch
Unknown parent • • •That’s awesome. I think the URIs are supposed to look like this: web+activitypub:toot.fedilab.app/@apps (Notice the absence of //)
Maybe @jenniferplusplus can chime in to clarify? Maybe also something to be more explicit about in the FEP.
I know that over a decade we had both variants in the #XMPP world and that turned out to be a mess when parsing (Correct in the XMPP world is without the //)
Fedilab Apps
in reply to Fedilab Apps • • •The app can now open profiles with the scheme "web+activitypub"
Examples of working links:
fdroid.fedilab.app/testlink/
Jenniferplusplus
in reply to Daniel Gultsch • • •Daniel Gultsch
in reply to Jenniferplusplus • • •@jenniferplusplus personally I belive it's fine to assume https as the transport. While ActivityPub may or may not work over telnet I don't think we'd be using a web+ scheme for that.
However - assuming that we can agree on https - my question was just: is it
a) web+activitypub:something
b) web+activitypub://something
The examples in the FEP indicate a although there isn't any normative text.
The web+soup example here html.spec.whatwg.org/#custom-h… also uses variant (a)
Fedilab Apps
in reply to Daniel Gultsch • • •@jenniferplusplus
Daniel Gultsch
in reply to Fedilab Apps • • •@jenniferplusplus Conversations has been able to open xmpp: URIs (without //) for years.
Just to be sure I tested this with web+activitypub: URIs quickly to make sure web+ URIs don’t get special treatment - and it’s working fine in both Firefox and Chrome on Android.
Here is the intent filter I was using: gist.github.com/iNPUTmice/7975…
I have no strong opinions on whether the // should go in there. But I’m advocating for consistency. (And clarity in the FEP)
AndroidManifest.xml
GistFedilab Apps
in reply to Daniel Gultsch • • •I will check if it works without //
@jenniferplusplus
#1160 - Detects acct and intent in URL with scheme web+activitypub · db17df93f0
Codeberg.orgDaniel Gultsch
Unknown parent • • •@jenniferplusplus OK. Fair enough. Since I’m unsure what other venue would be more appropriate for finding consensus I added my comments to the @Tusky issue tracker: github.com/tuskyapp/Tusky/issu…
Let’s continue the discussion there instead here on Mastodon.
Support 'FEP-07d7: A Custom URL Scheme and Web-Based Protocol Handlers for Linking to ActivityPub Resources' · Issue #5027 · tuskyapp/Tusky
GitHubDaniel Gultsch
Unknown parent • • •I assume you are testing with this exact commit? codeberg.org/tom79/Fedilab/com…
If you wanted web+activitypub: to work (without the //) you can’t have host and pathPattern in there. Only <data android:scheme="web+activitypub" /> analogous to the gist I linked earlier.
However see my comments on the Tusky issue tracker on why I believe fedilinks is better than FEP-07d7: github.com/tuskyapp/Tusky/issu…
fedilinks uses :// anyway
#1160 - Detects acct and intent in URL with scheme web+activitypub · db17df93f0
Codeberg.orgFedilab Apps
in reply to Daniel Gultsch • • •Jenniferplusplus
in reply to Daniel Gultsch • • •Fedilab Apps
in reply to Fedilab Apps • • •That said, that's exactly what conversation will do for sending the intent to Mastodon apps?
@jenniferplusplus