Andre Aparcana
Posts: 0
Joined: Fri Jun 13, 2014 2:08 am

Push notification to a range of users depending of their location

Hello Support,

This is for my Event app (Concerts, shows, etc)

I have a couple of questions:

  1. I will like my google map to displays all my Events location (with a pointer).

  2. I will like to send a push notification to a range of user depending of the Event location(EX. Concert, show, etc)

  3. Is there a way how to See all my user locations (people with mobile devices, using location sensor) and send them a push notification if i see they are near the area of the Event (ex.concert)?

  4. How i can save my users (mobile device location) in the data base and use that data to send a push.

    How i can make this to work?

    i will appreciate of you answer each one of my questions.

    Regards,

    Andre

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

Push notification to a range of users depending of their location

Hello!

1) Please take a look here
http://devcenter.appery.io/tutorials/...

http://devcenter.appery.io/tutorials/...

2) Use filters to send push http://devcenter.appery.io/documentat...

3) Run server script on schedule http://devcenter.appery.io/documentat... or manually. This server script will send push to the specific users depending on their location.
http://devcenter.appery.io/documentat...

http://devcenter.appery.io/documentat...

4) This should help http://blog.appery.io/2014/02/buildin...

Andre Aparcana
Posts: 0
Joined: Fri Jun 13, 2014 2:08 am

Push notification to a range of users depending of their location

Hello Maryna,

Thank you for the info.

One more question:

How i can send a push notification to my users near to the event?
example: a have an event currently on Bloomfield, NJ and i want to send a push notification to my users that are in bloomfield or near. (oly user in the area or near)

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

Push notification to a range of users depending of their location

Hello!

Save user coordinates into localStorage in Devices collection (update them time to time to have current coordinates). When sending Push use filter to search all users close to event coordinates. Here is more information http://devcenter.appery.io/documentat...

Andre Aparcana
Posts: 0
Joined: Fri Jun 13, 2014 2:08 am

Push notification to a range of users depending of their location

Maryna,

is there a java script that will allow me to update the user coordinates automatically? or for example: every hour?

if so, where should apply it?

Thanks!

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

Push notification to a range of users depending of their location

Hello!

In GeolocationService set watchPosition=true and specify updating interval in maximumAge (ms). Save coordinates into localStorage, on geolocation service success event invoke Update coordinates service in Devices collection (retrieve coordinates from localStorage). http://devcenter.appery.io/documentat...

Return to “Issues”