@@ -246,11 +246,12 @@ class AndroidNotification(object):
246246 title text (optional).
247247 title_loc_args: A list of resource keys that will be used in place of the format specifiers
248248 in ``title_loc_key`` (optional).
249+ channel_id: channel_id of the notification (optional).
249250 """
250251
251252 def __init__ (self , title = None , body = None , icon = None , color = None , sound = None , tag = None ,
252253 click_action = None , body_loc_key = None , body_loc_args = None , title_loc_key = None ,
253- title_loc_args = None ):
254+ title_loc_args = None , channel_id = None ):
254255 self .title = title
255256 self .body = body
256257 self .icon = icon
@@ -262,6 +263,7 @@ def __init__(self, title=None, body=None, icon=None, color=None, sound=None, tag
262263 self .body_loc_args = body_loc_args
263264 self .title_loc_key = title_loc_key
264265 self .title_loc_args = title_loc_args
266+ self .channel_id = channel_id
265267
266268
267269class WebpushConfig (object ):
@@ -596,6 +598,8 @@ def encode_android_notification(cls, notification):
596598 'AndroidNotification.title_loc_args' , notification .title_loc_args ),
597599 'title_loc_key' : _Validators .check_string (
598600 'AndroidNotification.title_loc_key' , notification .title_loc_key ),
601+ 'channel_id' : _Validators .check_string (
602+ 'AndroidNotification.channel_id' , notification .channel_id ),
599603 }
600604 result = cls .remove_null_values (result )
601605 color = result .get ('color' )
0 commit comments