-
-
Notifications
You must be signed in to change notification settings - Fork 673
Description
This is a requirement of #3075 . See https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels .
This feature of Android O is documented here:
https://developer.android.com/training/notify-user/channels
There are a lot of useful things we could do with it, distinguishing e.g. PMs from @-mentions from stream messages, and distinguishing different accounts. None of those are possible without rather more overhaul of our notifications code, though -- in particular, we always display just one notification (in fact we give it a single hard-coded ID!)
So, pending that greater overhaul, we'll just tick the checkbox: we need to set a channel on our notifications. We'll have just one channel. See the doc on creating notifications:
https://developer.android.com/training/notify-user/build-notification#builder
and search for mentions of "channel" to see how to
- create the notification channel at app startup time, and
- set the notification channel on the notification.