Anbox: Feature request: Redirect notifications to host

Created on 22 Jan 2020  路  3Comments  路  Source: anbox/anbox

This is a feature request not a bug so standard template doesn't work here.
When an app receives a system notification (either through Push like Google Firebase Messaging or timers), there should be a means to show them on the host system.
This is especially useful in cases the user runs a mobile messenger inside Anbox (WhatsApp/Signal/you name it) but having the window closed/minimized, received push notifications should appear on the host's/desktop environment's notification system (e.g. Ubuntu Touch) in order to notify the user.

decaying

Most helpful comment

I am a developer myself and could implement that feature, but I need some advice on the architecture of the solution (especially where to look for grabbing that notification from the running Android system inside Anbox, and how to transport it to the host).
My naive assumption would be:
1) Provide an APK to be installed by the end user, which implements NotificationListenerService and forwards the notification through a socket to the host
2) Have a service running on the host (part of anbox binary?) which listens on the socket and calls a desktop-enviroment-specific implementation (separate package) to issue that notification.

Any comment or ideas on this?

All 3 comments

I am a developer myself and could implement that feature, but I need some advice on the architecture of the solution (especially where to look for grabbing that notification from the running Android system inside Anbox, and how to transport it to the host).
My naive assumption would be:
1) Provide an APK to be installed by the end user, which implements NotificationListenerService and forwards the notification through a socket to the host
2) Have a service running on the host (part of anbox binary?) which listens on the socket and calls a desktop-enviroment-specific implementation (separate package) to issue that notification.

Any comment or ideas on this?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I think is a great idea.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EazyErwin picture EazyErwin  路  3Comments

GustavoPeredo picture GustavoPeredo  路  3Comments

ashakranthi picture ashakranthi  路  4Comments

harry-cpp picture harry-cpp  路  4Comments

Conzar picture Conzar  路  4Comments