It’s worth noting that this app won’t be compatible with future per-profile network namespaces which is a planned feature for GrapheneOS, but it’s hard to implement. We could allow toggling it off per-profile though.
Hope this happens as it is a useful app. Although toggling off “allow running in background” also seems to disable the app when i don’t want to use it.
That’s correct for the profile that you are sharing from.
When sharing something from a profile, a server will be started within it, listening to a local TCP port. If the profile is configured to be put to rest when switching away from it, the server will be stopped as well and the shared data can no longer be accessed.
I was considering to circumvent this by having a “central” server on the device only within a single profile that will never be put to rest, like the Owner profile. But solutions such as this make the setup-process harder and I really wanted it to be as simple as possible.
To me, this sounds like it could be a useful feature, if you ever decided to make a work around, as then I could use the app without toggling on “allow running in background”.
Maybe its a bit of a niche case but since, I re-use the same VPN config for multiple profiles, sometimes this toggle being on causes issues.
Not quite as convenient, but you could achieve the same thing by manually ending the session (instead of having it automatically end on-switch) of users when you’re finished with them and when you’re also no longer sharing anything from them.
(Currently only possible on GrapheneOS in the Power-Off dialogue where you have an End-Session button in addition to Shutdown and Restart)