[英]How to push new geofencing locations with appcelerator?
I have an app built in appcelerator, and I have upgraded to use the geofencing module. 我有一个内置在appcelerator中的应用程序,并且已升级为使用地理围栏模块。 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. 在appcelerator仪表板中,有一个地方可以创建“地方”和“地理围栏”条目。 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 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? 我是否可以通过推送通知触发流程,而无需打开应用程序就可以注册新位置?
You can create geofences server-side using the API: 您可以使用API在服务器端创建地理围栏:
http://docs.appcelerator.com/arrowdb/latest/#!/api/GeoFences-method-create 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. 该模块提供了一个示例,说明如何从服务器获取这些内容,然后在设备上进行设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.