-
Notifications
You must be signed in to change notification settings - Fork 1.9k
🐧 Fix Android O channel confusing name/description #2142
base: master
Are you sure you want to change the base?
🐧 Fix Android O channel confusing name/description #2142
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any news about this PR ? |
24d8267
to
56bfae8
Compare
Rebase PR on last dev |
For default channel,description should be default channel |
56bfae8
to
8929990
Compare
@OliverOng1995 Good catch ! I fixed it ;) |
Also please edit the Type definition for those using typescript to reflect the changes |
My bad... didn't commit the file. I've no excuses since I use typescript for my tests ! |
@camillebeaumont Thanks for the type definition updates! However, @OliverOng1995 did some of the work on his #2607 PR, which now conflicts with this one. We'll need to sync both PRs to be able to work it. |
@fredgalvao How can I help for this ? Sorry it's my first PR :) |
We'll need to have one of them (2 PRs) merged first, and then the other will need to merge/rebase from origin/master to sync. Soon someone should have the time to take a look at them and either merge or ask for changes. Another option would be to have a unified pull request with both code intentions, considering they touch very close points. |
Fix Android O channel creation confusing name/description
Description
Since Android O, notifications required channels. Channel required an id, a name and a priority to be created. An optional description can be added to a channel. see docs
Motivation and Context
Actually, plugin api required a
description
field in JS that is bind to the channel name on creation. But when retrieving channels list, plugin display ID and description (the real one) and not the channel name. It's a bit confusing and some (like me) may tear their hair out finding what going on when list didn't show their channel name.How Has This Been Tested?
This as been tested on a Nexus 5X on Android 8.1., creating a channel with just a name, and another with name and description.
Types of changes
Breaking since old
description
field becomename
, and the "new"description
field is correctly used for channel description.Checklist: