adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I check if there is a new entry in the database without sending an api request?

How can I check if there is a new entry in the database without sending an api request? I have an idea how it can be done but am not sure if it is possible or is there another way. My idea is that when a new entry has been placed in a collection the server will send a notification to the client alerting them. How can this be done?

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

How can I check if there is a new entry in the database without sending an api request?

Hello Adam,

You can use for this purpose Appery.io server code. There should be scheme like this: you send data to the service that uses server code, this service create a new record in DB and send a push notification to the clients.
Here you can find the server code documentation: http://devcenter.appery.io/documentat...

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I check if there is a new entry in the database without sending an api request?

Is there away to count the entries in the database using server code? I would like to check if a new entry is added to one my collections then send that new entry as a push notification. I am new to the server code feature.

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

How can I check if there is a new entry in the database without sending an api request?

Hello Adam,

These is a list of available from server code function for working with database: http://devcenter.appery.io/documentat...
You can use "query"

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I check if there is a new entry in the database without sending an api request?

After I send a push notification from the server code. Is there a way for me to invoke a list service when sending the notification with the server code?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How can I check if there is a new entry in the database without sending an api request?

You should send something to the Clint (sending Push is ok) that will be distinguished as action and will call Service.

But you can not just invoke Service from Server Code,

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I check if there is a new entry in the database without sending an api request?

Thank you. That sounds like it will work. So for example, if a message is trigger then call service

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

How can I check if there is a new entry in the database without sending an api request?

How can I turn off the sound and vibration for the push notifcations?

Return to “Issues”