File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -244,28 +244,6 @@ def send_each():
244244 print (f'{ response .success_count } messages were sent successfully' )
245245 # [END send_each]
246246
247-
248- def send_each_for_multicast ():
249- # [START send_each_for_multicast]
250- # Create a list containing up to 500 registration tokens.
251- # These registration tokens come from the client FCM SDKs.
252- registration_tokens = [
253- 'YOUR_REGISTRATION_TOKEN_1' ,
254- # ...
255- 'YOUR_REGISTRATION_TOKEN_N' ,
256- ]
257-
258- message = messaging .MulticastMessage (
259- data = {'score' : '850' , 'time' : '2:45' },
260- tokens = registration_tokens ,
261- )
262- response = messaging .send_each_for_multicast (message )
263- # See the BatchResponse reference documentation
264- # for the contents of response.
265- print (f'{ response .success_count } messages were sent successfully' )
266- # [END send_each_for_multicast]
267-
268-
269247def send_each_for_multicast_and_handle_errors ():
270248 # [START send_each_for_multicast_error]
271249 # These registration tokens come from the client FCM SDKs.
You can’t perform that action at this time.
0 commit comments