【发布时间】:2023-02-20 14:07:45
【问题描述】:
我试图在我的 django 应用程序中从 Firebase_Admin 获取响应错误,因为有些用户没有收到通知,但是当我使用下面的代码时,我只收到一个带有 batchResponse、registration_ids_sent 和 deactivated_registration_ids 的 FirebaseResponseDict() 例如:
FirebaseResponseDict(response=<firebase_admin.messaging.BatchResponse object at 0x053E124>, registration_ids_sent=['...','...','...'],deactivated_registration_ids=[]
我需要错误的详细信息才能知道为什么有些用户没有收到推送通知
我需要错误的详细信息才能知道为什么有些用户没有收到推送通知
这是我的代码: `
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)))))
` 任何帮助都会有所帮助
【问题讨论】:
标签: python django firebase push-notification