Andrew Walker
Posts: 0
Joined: Thu Dec 05, 2013 9:11 am

Push Notifications based on a query.

Push Notifications based on a query.

My app works based on postal code(zip code).When a new entry is made into the database that corresponds with the users postal code, I want it to push a notification.

So I do not want the notification to go to everyone all the time, just some members with that correct postal code.

How do I make it do this, do I need to get information unique to the device and store it within the app database, so when the device id, and postcode matches it sends a notification? Or do I have the app do the work and it decides whether or not to show it?

Not sure what is best or less memory and time, solution ?

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

Push Notifications based on a query.

Hello! You can store zip code in Devices data collection and use this column to filter push messages. Here is more information http://docs.appery.io/documentation/b...
http://docs.appery.io/documentation/b...

Andrew Walker
Posts: 0
Joined: Thu Dec 05, 2013 9:11 am

Push Notifications based on a query.

I never noticed the Devices database. Is there a link to where I learn how to get this information ?

Andrew Walker
Posts: 0
Joined: Thu Dec 05, 2013 9:11 am

Push Notifications based on a query.

Do I take it then, the data, regarding the device is taken and added automatically ? That link tells me what it is, but not how to get it ?

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

Push Notifications based on a query.

If you've connected DB to Push, then when Push registration success event is triggered in app which is installed on device - device data appears in Devices data in DB. You can retrieve device data, update it using REST requests. Here is more information http://docs.appery.io/documentation/b...

Return to “Issues”