Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access notification channels for another Android app?

I want to create a function that calls the notification channel settings for another app. I don't know the channel IDs for the other app. Is there a way to do that?

like image 387
Arturo Pineda Avatar asked Oct 17 '25 14:10

Arturo Pineda


1 Answers

You cannot access the notification channels of another app, neither what channels there are nor what their settings are.

The only thing you can do is to open the notification settings overview of another app, given its package name (Facebook for example):

Intent intent = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS)
        .putExtra(Settings.EXTRA_APP_PACKAGE, "com.facebook.katana");
startActivity(intent);
like image 107
Floern Avatar answered Oct 19 '25 04:10

Floern



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!