How to get the response of Firebase Messaging in django (FCM-DJANGO)

I'am trying to get the response errors from Firebase_Admin in my django application, because some users are not reciving the notifications, but when I use the code below I only recive a FirebaseResponseDict() with a batchResponse, the registration_ids_sent and deactivated_registration_ids inside for example:

FirebaseResponseDict(response=<firebase_admin.messaging.BatchResponse object at 0x053E124>, registration_ids_sent=['...','...','...'],deactivated_registration_ids=[] I need the error detail to know why some users are not reciving push notifications

I need the error detail to know why some users are not reciving push notifications

This is my Code: `

devices.send_message(Message(webpush=WebpushConfig(notification=WebpushNotification(title=noticia.titulo, body=noticia.resumo, image=noticia.capa.url, icon=icone), fcm_options=WebpushFCMOptions(link='https://site/'+str(id)))))

` any help will be helpfull

Back to Top