AIMP Forum

AIMP for Android => Предложения / Suggestions => Topic started by: Invain on December 27, 2022, 16:04:38

Title: Dismiss notification by sliding
Post by: Invain on December 27, 2022, 16:04:38
Hello. Almost all major audio apps use sliding to dismiss their notifications. But not AIMP. It's very frustrating and inconvenient to tap twice to do such simple task as to dismiss a notification. Can you bring the behavior in line with other applications? Or at least add an option to do so. Thanks.

P.S. The video shows how other apps manged this: https://youtube.com/shorts/NuTSr7JxyUA
Title: Re: Dismiss notification by sliding
Post by: Artem on December 27, 2022, 16:12:51
Starting from Android 8.1, notification is required for any background activity. So, it mean you cannot hide the notification without stopping the service. Unfortunately (comparing with another apps), we cannot stop the service on pause, because it contains all data that needed for the application.
Title: Re: Dismiss notification by sliding
Post by: Invain on December 27, 2022, 16:31:20
Can you elaborate on this, please? The first thought that come to mind that it was an architectural decision made at the beginning of development, and now it requires a lot of work to change it. Because other players somehow managed this.

Anyway, thanks for the fast reply and app in general. You made a beautiful piece of software. I use it daily and not only for music but also for speech oriented content because it has bookmark functionality that many podcast apps lack. Bookmarks also allow me to save track names from radio streams for future addition to the library.
Title: Re: Dismiss notification by sliding
Post by: Artem on December 27, 2022, 16:46:06
Android API documentation says that non-"OnGoing" widgets can be dismissed and OS send the delete intent on dismiss, but no one of my real devices has this behavior (but emulator has).

The first thought that come to mind that it was an architectural decision made at the beginning of development, and now it requires a lot of work to change it.

Yes, it sounds like that.

Because other players somehow managed this.

Did you know any open-source players that has a correct behavior? May be I miss something...