Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5985] iOS: CLLocationManager class methods - crucial for location trackers

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 1.7.4, Release 1.7.5, Release 1.8.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterKarol Pomaski
AssigneeEric Merriman
Created2011-11-03T15:09:24.000+0000
Updated2018-08-02T17:31:52.000+0000

Description

Feature description

Ability to use the CLLocationManager class and their methods. It will help building the location applications (like geofencing). The CLLocationManager class description: http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html Expected behavior: If you start this service and your application is subsequently terminated, the system automatically relaunches the application into the background if a new event arrives. In such a case, the options dictionary passed to the application:didFinishLaunchingWithOptions: method of your application delegate contains the key UIApplicationLaunchOptionsLocationKey to indicate that your application was launched because of a location event. Upon relaunch, you must still configure a location manager object and call this method to continue receiving location events. When you restart location services, the current event is delivered to your delegate immediately. In addition, the location property of your location manager object is populated with the most recent location object even before you start location services.

Associated HelpDesk Ticket

http://appc.me/c/APP-849329

Comments

  1. Ygor Lemos 2012-08-01

    Associated QA: http://developer.appcelerator.com/question/129000/geo-fencing And a must-read on the subject: http://stevenou.com/post/17623116547/how-to-hack-geofencing-into-titanium This code from Steven Ou can be used as a start point for this matter. I think geofencing is an old feature on iOS and could be easily mapped on the already working Titanium Geolocation module.
  2. Ben Bahrenburg 2012-08-01

    You might want to check out this module https://github.com/benbahrenburg/benCoding.BasicGeo it has many of the CCLocationManager functions you mentioned. Kevin has requested I submit a pull request, just trying to find the time to put everything together. So hopefully in the next couple of weeks will have it submitted.
  3. Ygor Lemos 2014-03-28

    Any news on this one? Can we merge Ben's code? (at least the startMonitoringSignificantLocationChanges part?) Also for complete Geofencing support we would need the startMonitoringForRegion / stopMonitoringForRegion methods of CLLocationManager properly mapped.
  4. Ingo Muschenetz 2014-03-28

    [~ygbr] Do we have a PR for the pieces you wished merged?

JSON Source