send_message not working after upgrade to latest fcm-django 10.0.12 #249
Unanswered
quirinhamp
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@quirinhamp Can you confirm none of your device FCM tokens in database are empty/null? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes I can, device_id and registration_token are not null |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Error:
settings.py
from firebase_admin import initialize_app, credentials
cred = credentials.Certificate(cred_path)
initialize_app(cred)
view.py
android_devices = devices.filter(type='android')
obj = )
message = Message(notification=Notification(title=form.cleaned_data['message_title'],
body=form.cleaned_data['message'],
image=None)
,
data=NotificationSerializer(not_obj).data,
topic="DSM"
)
android_devices.send_message(message)
admin
FCM device
Device ID
Name
Type
User
Is active
Creation date
93bf7f511865bd0bf6f3a3960e22052b58390b202486ac 93bf7f511865531ed9ccf35da90db2bd0bf6f3a3960e22052b58390b202486ac ios admin@cortid.org True 30. Juni 2023 16:10
37adcc81d24 37adcca724 android admin@comforid.org True 30. Juni 2023 14:04
What is wrong? Please help! In the past, no token was required for bulk send_message. The devices are created according to requirements.
Beta Was this translation helpful? Give feedback.
All reactions