Page 1 of 2
How can I check if there is a new entry in the database without sending an api request?
Posted: Fri May 30, 2014 8:32 pm
by adam griffin
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?
How can I check if there is a new entry in the database without sending an api request?
Posted: Fri May 30, 2014 8:56 pm
by Evgene Karachevtsev
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...
How can I check if there is a new entry in the database without sending an api request?
Posted: Fri May 30, 2014 9:22 pm
by adam griffin
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.
How can I check if there is a new entry in the database without sending an api request?
Posted: Sat May 31, 2014 7:00 pm
by adam griffin
Can someone, anyone help me???
How can I check if there is a new entry in the database without sending an api request?
Posted: Mon Jun 02, 2014 6:31 am
by Evgene Karachevtsev
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"
How can I check if there is a new entry in the database without sending an api request?
Posted: Tue Jun 03, 2014 1:54 am
by adam griffin
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?
How can I check if there is a new entry in the database without sending an api request?
Posted: Tue Jun 03, 2014 3:23 am
by Alena Prykhodko
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,
How can I check if there is a new entry in the database without sending an api request?
Posted: Tue Jun 03, 2014 10:37 pm
by adam griffin
Thank you. That sounds like it will work. So for example, if a message is trigger then call service
How can I check if there is a new entry in the database without sending an api request?
Posted: Tue Jun 03, 2014 10:37 pm
by adam griffin
How can I turn off the sound and vibration for the push notifcations?
How can I check if there is a new entry in the database without sending an api request?
Posted: Wed Jun 04, 2014 1:28 pm
by Evgene Karachevtsev
Hello Adam,
Look at this tutorial, please: http://devcenter.appery.io/tutorials/...