Fetching analytics related to push notification in `FCM Cloud Messaging`

穿精又带淫゛_ 提交于 2020-01-05 02:30:54

问题


I want to know whether push notifications are delivered to all the registrationId mapped to my user database or not.

I have 8000 users and all are having registrationId. I had sent notification to all of them and now i want to determine whether all those user had received the notification or not.

so is there any way to access this analytics using some FCM url.

I am aware that i can see analytics in google publisher from STATISTICS menu and selecting FCM messages and to check the delivery status i can go to FCM Diagnostics

Firebase support page

but using that tool to determine 8k users is nearly impossible so how can i get the analytics of cloud messaging.

Long back i have seen some link but forgot to bookmark :(


回答1:


There is currently no API to retrieve the delivery status for sent FCM messages.

In general, when the FCM server successfully receives the payload you've sent from your App Server, it should return a success:1 response along with a message_id.

If what you're aiming for is to know if the device has successfully received the message, you should implement Delivery Receipts:

Delivery Receipt: If the app server included delivery_receipt_requested in the downstream message, the XMPP connection server sends a delivery receipt when it receives confirmation that the device received the message.



来源:https://stackoverflow.com/questions/42933562/fetching-analytics-related-to-push-notification-in-fcm-cloud-messaging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!