Android: Notification Channels or Custom In-App Preferences for Notification Categories?


Environment

In my app, I have two main notification groups, and each of them has several sub-categories

Problem

I'm wondering what the better and more Android-native approach is for managing notification categories on Android.

Should I use channelId and rely on the app’s system notification settings, with a link from my app to the relevant system settings screen?

Or would it be better to implement my own notification settings inside the app and store the user’s preferences locally, for example in dataStore?

1
Jun 3 at 12:57 PM
User AvatarStanisław Olszak
#android#kotlin#android-notifications

Accepted Answer

> Should I use channelId and rely on the app’s system notification settings, with a link from my app to the relevant system settings screen?

Yes, do this. You can also add the second approach if you do intend to allow users to use your app on Android Nougat or older (although it's been about a decade now since it was released) where notification channels weren't a thing

User AvatarEdric
Jun 4 at 12:54 AM
0