Page 1 of 1

Automatic Push Notifications

Posted: Tue Jan 06, 2015 6:22 pm
by Mike6580064

Say I have a custom database collection that is a schedule of events. When there's a change to the schedule, is it possible to have automatic push notifications saying there was a schedule change instead of manually entering a notification for each change?


Automatic Push Notifications

Posted: Wed Jan 07, 2015 3:58 am
by Yurii Orishchuk

Hi Mike,

There is no build in functionality to send push on collection change.

But you can:

  1. Create server code that will emulate "create service".

  2. In the end of this server code - it will send push notification about changes.

  3. Use this server code instead of create service.

    You can do the same with other services update/delete if you need.

    Regards.


Automatic Push Notifications

Posted: Wed Jan 07, 2015 1:25 pm
by Mike6580064

OK thanks Yurii


Automatic Push Notifications

Posted: Wed Apr 27, 2016 5:46 pm
by Ellen Schlechter

Would it be possible to send a push notification after a user creates an account for the first time?


Automatic Push Notifications

Posted: Wed Apr 27, 2016 5:52 pm
by Jon Haider

Absolutely, and the same logic that Yurii mentioned also applies. I have a similar functionality, and the flow is something like:

1- create a server code called "userCreateAccount" (for example)
2- In this server code you'll get the user's info and create a new DB entry in the Users collection.
3- After creating the user is successful, you can send the Push Notification (or text message, or email) from within the same server code script.


Automatic Push Notifications

Posted: Thu Apr 28, 2016 2:37 pm
by Ellen Schlechter

Do you have an example?