Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Automatic Push Notifications

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?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Automatic Push Notifications

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.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Automatic Push Notifications

OK thanks Yurii

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Automatic Push Notifications

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

Jon Haider
Posts: 0
Joined: Thu Oct 16, 2014 2:53 pm

Automatic Push Notifications

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Automatic Push Notifications

Do you have an example?

Return to “Issues”