Android: is it possible to remove a system notification programmatically?

I created an application that sets up a vpn profile and connects to it. When I'm connected, I want my notification to be shown, but the android provides its own notification, which is displayed during the life of the VPN connection.

Do I need to โ€œdeleteโ€ this notification, or at least remove the corresponding icon from the top of the screen?

+1
source share
1 answer

This is not possible for Android, sorry.

You cannot control notifications outside of your own application, regardless of whether they belong to another third-party application or system. Only your own notifications can be updated or rejected by you.

+4
source

Source: https://habr.com/ru/post/1491559/


All Articles