简体   繁体   English

在iOS应用中从Firebase获取发送的推送通知的历史记录

[英]Fetch history of sent push notifications from Firebase, in iOS app

I have an iOS app that integrated with Firebase Cloud Messaging to send push notifications from. 我有一个与Firebase Cloud Messaging集成的iOS应用程序,用于从中发送推送通知。 I know that Firebase saves history of all sent notifications. 我知道Firebase会保存所有已发送通知的历史记录。 Is there a way for each specific device running the app to fetch its own history of sent notifications? 每个运行该应用程序的特定设备是否都可以获取自己的发送通知历史记录? I need to do it on client side, not on server. 我需要在客户端而不是服务器上执行此操作。

There is currently no API to retrieve details of all the sent notifications with FCM (see this and this ). 当前没有API可以通过FCM检索所有已发送通知的详细信息(请参阅thisthis )。

The idea is still feasible, however, you'll have to store the logs/history on your own, in your App Server. 这个想法仍然可行,但是,您必须自己将日志/历史记录存储在App Server中。 From there, you could setup your app to retrieve the details that only correspond to the device. 从那里,您可以设置应用程序以检索仅与设备相对应的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM