Share target for Android apps

How do I make an app a share target for Android apps? It’s a native SFOS app that’s registered for both text and file sharing.

I noticed Messages and other Sailfish apps are included in the Android picker. Do they ship some tiny Android app? Or is there a way to make it work?

The app (BitSailor) can’t get onto the Jolla store anyway, so compatibility with the store is not a concern.

4 Likes

Right now there is a tiny Android system app that does that for the browser, messages etc, and they’re hardcoded. So it’s not straightforward. I don’t think there are any plans to do it anytime soon.

3 Likes

Hmm. Probably another use case for XDG Desktop Portals. And a rather ‘unforseen’ one.

`s/flatpak/android app support/’ …

1 Like

Is it open source by any chance? Or does it simply register the share targets as intent filters and then somehow forwards it?

If so, how is the forwarding implemented?

No it’s not open source, and it’s hardcoded for those apps. Sharing and opening things from SailfishOS now queries Android if it’s running, as it used to export mime types into the desktop files. Getting Android to do the same querying back is a lot more work.