

For notifying users, we need to show notifications in the status bar. A foreground service is nothing but a service that executes tasks that are noticeable to the user. However, background services are restricted for apps that target Android 9 (API level 28) or higher so we need a foreground service. To do the Floating Bubbles we need the help of a service which will be running in the background. In this post we will see how we can attach them to the window manager, drag them and change their position. For example, replying to messages through Floating bubbles.įloating bubbles are just views attached to WindowManager with custom flags. In Android, Floating bubbles or ChatHeads allow quick access to core features without fully opening the app.
