@@ -137,14 +137,18 @@ class AndroidNotification:
137
137
If ``default_light_settings`` is set to ``True`` and ``light_settings`` is also set, the
138
138
user-specified ``light_settings`` is used instead of the default value.
139
139
visibility: Sets the visibility of the notification. Must be either ``private``, ``public``,
140
- or ``secret``. If unspecified, default to ``private``.
140
+ or ``secret``. If unspecified, it remains undefined in the Admin SDK, and defers to
141
+ the FCM backend's default mapping.
141
142
notification_count: Sets the number of items this notification represents. May be displayed
142
143
as a badge count for Launchers that support badging. See ``NotificationBadge``
143
144
https://developer.android.com/training/notify-user/badges. For example, this might be
144
145
useful if you're using just one notification to represent multiple new messages but you
145
146
want the count here to represent the number of total new messages. If zero or
146
147
unspecified, systems that support badging use the default, which is to increment a
147
148
number displayed on the long-press menu each time a new notification arrives.
149
+ proxy: Sets if the notification may be proxied. Must be one of ``allow``, ``deny``, or
150
+ ``if_priority_lowered``. If unspecified, it remains undefined in the Admin SDK, and
151
+ defers to the FCM backend's default mapping.
148
152
149
153
150
154
"""
@@ -154,7 +158,8 @@ def __init__(self, title=None, body=None, icon=None, color=None, sound=None, tag
154
158
title_loc_args = None , channel_id = None , image = None , ticker = None , sticky = None ,
155
159
event_timestamp = None , local_only = None , priority = None , vibrate_timings_millis = None ,
156
160
default_vibrate_timings = None , default_sound = None , light_settings = None ,
157
- default_light_settings = None , visibility = None , notification_count = None ):
161
+ default_light_settings = None , visibility = None , notification_count = None ,
162
+ proxy = None ):
158
163
self .title = title
159
164
self .body = body
160
165
self .icon = icon
@@ -180,6 +185,7 @@ def __init__(self, title=None, body=None, icon=None, color=None, sound=None, tag
180
185
self .default_light_settings = default_light_settings
181
186
self .visibility = visibility
182
187
self .notification_count = notification_count
188
+ self .proxy = proxy
183
189
184
190
185
191
class LightSettings :
0 commit comments