How to push new geofencing locations with appcelerator?

172 views Asked by At

I have an app built in appcelerator, and I have upgraded to use the geofencing module. I want to be able to set new locations and push those to the app, which I thought could be done with push notifications.

In the appcelerator dashboard, there is a place to create "places" and "geofencing" entries. I have done this. But I'm not sure how to get that into the app. Since it looks like they have to be registered within the app:

http://docs.appcelerator.com/platform/latest/#!/api/Modules.Geofence

Am I supposed to write code that downloads these and registers them? Is it possible to do this within a push notification somehow?

Can i trigger a process with a push notification that will be able to register the new locations without having to open the app?

1

There are 1 answers

2
Fokke Zandbergen On BEST ANSWER

You can create geofences server-side using the API:

http://docs.appcelerator.com/arrowdb/latest/#!/api/GeoFences-method-create

The module has an example on how to fetch these from the server and then set them on the device.