I would like to send a notification based to the location of user and radius setted in user tag.
Example :
- shop 1: location : lat : -20, long : 55
- shop 2 : location : lat : -21, long : 55
User1 wants to receive notifications from stores located within 20km of him User2 wants to receive notifications from stores located within 30km of him
In users tags, I setted location of users and maximum distance
- User1 : tags {lat : XXX, lon : YYY, radius : 20}
- User2 : tags {lat : XXX, lon : YYY, radius : 30}
- Shop 1 is located within 10km of user1
- Shop 1 is located within 40km of user2
- Shop 2 is located within 20km of user1
- Shop 2 is located within 25km of user2
Shop 1 sends notification. User1 receives notification, not user2
Shop 2 sends notification. User1 and user2 receive notification
is it possible ?
in the api (https://documentation.onesignal.com/reference#section-send-to-users-based-on-filters), we can set location filter (radius, lat,long).
is it possible to set radius value with radius value setted in user tag ?
Thanks
Aucun commentaire:
Enregistrer un commentaire