如何快速查询解析所有推送通知? [英] how to query parse for all push notifications in swift?

查看:154
本文介绍了如何快速查询解析所有推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何处理1.解析推送通知查询2.迅速

Does anyone know a good tutorial dealing with 1. parse push notification queries 2. in swift

我想查询发送给特定用户的所有通知的解析(这些通知可以从不同的用户发送)并相应地处理通知数据.我不仅想知道如何查询它,还想知道代码应该在哪里.我还没有在Google上找到符合所有条件的优秀教程.

I would like to query parse for all notifications sent to a specific user(these could be sent from different users) and handle the notification data accordingly. Not only would I like to know how to query this but where the code should be. I havent found a good tutorial on google that matches all the criteria.

OR

是否有一种方法可以强制通知中心中的所有通知在应用程序中打开.

is there a way to force all the notifications in notification center to open in the app.

任何帮助将不胜感激.

Any help would be appreciated.

推荐答案

没有API允许您直接查询发送的推送通知.您将需要在Parse中创建自己的集合,将其命名为Notification,并且每当您向用户发送通知时,都需要在该表中创建一个条目.然后,您可以查询该表并将其显示给用户,以向他们显示通知的历史记录.

There is no API that would allow you to query for sent push notifications directly. You would need to create your own collection in Parse, call it Notification or something and whenever you send a notification to a user, create an entry in that table. Then you can query this table and display them to a user to show them a history of the notifications.

这篇关于如何快速查询解析所有推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆