binwiederhier / ntfy-android

Android app for ntfy.sh
Apache License 2.0
465 stars 92 forks source link

[Feature Request] Support multi-user awareness #63

Closed OneDeuxTriSeiGo closed 11 months ago

OneDeuxTriSeiGo commented 11 months ago

Android provides a mechanism for marking a service, receiver, or provider to only run on user 0 and for all requests to that service, receiver, or provider to be routed to the one on user 0 rather than within the current user [1].

If ntfy was to take advantage of this, users who segregate their apps between user profiles (as is common with GrapheneOS for example) would be able to still keep one ntfy instance locally and one connection back to the ntfy server rather than requiring one instance per user.

I may be able to eventually try writing up a PR implementing this functionality but it'll likely be a decent while before I do so.

  1. https://source.android.com/docs/devices/admin/multiuser-apps
OneDeuxTriSeiGo commented 11 months ago

I just saw #1. Will close and reopen in the main tracker.