Code Monkey home page Code Monkey logo

Comments (2)

gurudey avatar gurudey commented on June 25, 2024

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.

oakleaf avatar oakleaf commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.