how to query parse for all push notifications in swift?

时光毁灭记忆、已成空白 提交于 2020-01-25 10:58:08

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/31358012/how-to-query-parse-for-all-push-notifications-in-swift

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