RamChandraReddy
RamChandraReddy

Reputation: 239

How to fetch history of user specific push notifications from parse in iOS?

I have implemented an iOS app with parse integration for data handling. App uses push notifications services provided by Parse. I am using Parse PUSH console to send the push notification based upon user email ID and its working. Till now everything is fine. The problem is with fetching the notifications data of that user from Parse. I couldn't find any way to fetch the notifications history of the user.

I have only one option i.e create new table in Parse and store the notifications information in that table whenever app receives a push notification so that I can query from that table.

But the problem is if the app is not running in the background and user has not lunched the app then notifications data could not be stored in the newly created table as the app is not awake.

Is there any update from the Parse team or any other solution to get this work done?

Thanks in advance.

Upvotes: 0

Views: 379

Answers (1)

Ran Hassid
Ran Hassid

Reputation: 2788

all the notifications that are sent by parse-server are stored in _PushStatus collection. This is also the collection that parse dashboard fetch the data from. What you can do is to see what kind of data there is in this collection and create a query that will fetch the data that you need from it. You can use mongo CLI in order to display this collection or Mongo admin UI tool like MongoDB compass.

Upvotes: 2

Related Questions