Comments (2)
Yes radius are in meters
ci_geofencing.startGeoFencing(regions, function(event) {
if (event.type == "entered_region")
{
var notification = Ti.App.iOS.scheduleLocalNotification({
alertAction: "Open",
alertBody: "Hello",
userInfo:{"hello":"world"},
});
}
});
Events works when you enter or exit a region. Make sure you have AUTHORIZATION_ALWAYS permissions.
Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {
if (!e.success) {
Ti.API.info("-----------requestLocationPermissionsOFF----------");
}
});
from titanium-appcelerator-geofence-module-ios.
That is exactly how I structured everything. Been running some tests now, created 3 different regions now with different radius (50, 100 & 150m) and for a reason the one with 100m radius worked. Not awesome, but at least it showed me some data.
When looking at some other solutions in native, they've set the parameter to "identifier", which I think you use as "title". Might be a confusing thing.
One question though, would you mind share the module, maybe I can fork it and work further with it? Im missing some basic functionality such as resetting and extending regions.
Thanks!
from titanium-appcelerator-geofence-module-ios.
Related Issues (3)
- Repeating regions HOT 2
- its work for TI 8.3.0 Alloy App ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titanium-appcelerator-geofence-module-ios.