问题
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