I run tihs code:
cred = credentials.Certificate('x.json')
firebase_admin.initialize_app(cred)
registration_tokens = [
'GET REAL TOKEN1',
'GET REAL TOKEN2',
]
message = messaging.MulticastMessage(
notification=messaging.Notification(
title="Notification Title",
body="Notification Text",
),
tokens=registration_tokens
)
response = messaging.send_multicast(message)
print('response', response.success_count, response.failure_count)
when run this code get error:
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>404.</b> <ins>That’s an error.</ins>
<p>The requested URL <code>/batch</code> was not found on this server. <ins>That’s all we know.</ins>
NOTE: I can send message to one user and work correctly:
messaging.Message()