Daniele Viola
Posts: 0
Joined: Tue Aug 05, 2014 4:09 pm

fetching push notifications

Hello,

I need some advice to fetch and save sent notifications to my local database.

Actually, I can fetch push notifications using the following command:

curl -X GET \
-H "Content-Type: application/json" \
-H "X-Appery-Database-Id: xxxxxxxxxxxxxxxxxxxxx" \
-H "X-Appery-Session-Token:xxx-xxxx-xxxxx-xxxx-xxx"
https://api.appery.io/rest/1/appconso...

but I'm not able to retrieve notifications by schedule date. Is there a specific parameter to fetch notifications by date?

Thanks
Daniele

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

fetching push notifications

Hello Daniele,

You should get a push-message immediately after the occurrence of the time for which it was postponed. To do this, you do not need to add any code http://devcenter.appery.io/tutorials/...

Daniele Viola
Posts: 0
Joined: Tue Aug 05, 2014 4:09 pm

fetching push notifications

Sorry, my post is not very clear. For local database I mean a database like MySql. I need to keep a copy of sent push notification on my own server.

Thanks
Daniele

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

fetching push notifications

Hello!

When you do GET request on prehttps://api.appery.io/rest/1/appconsole//push/msg/pre you retrieve list of all pushes for appId, every push has status and schedule.

Could you clarify what are you trying to get?

Daniele Viola
Posts: 0
Joined: Tue Aug 05, 2014 4:09 pm

fetching push notifications

Hello,

thanks for your reply.

How can I filter push by date when I call this service?

Suppose there are 2 push notifications: one scheduled on 3th April and one scheduled on 4th April.
How can I fetch only the one on 3th April? What are the parameters I need to send to the service
to fetch the notifications?

Please, could you show me an example using CURL?

Thanks
Daniele

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

fetching push notifications

Hello!

This service won't accept any parameters. You would need to retrieve all information, then filter it using JS.

Return to “Issues”