[TIMOB-1930] Allow Geolocation in background
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-04-15T03:05:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M10 |
Components | Android |
Labels | android, background, feature, geolocation, gps, klist, release-1.6.0 |
Reporter | Ralf Pfeiffer |
Assignee | Don Thorp |
Created | 2011-04-15T03:05:54.000+0000 |
Updated | 2017-03-03T05:59:44.000+0000 |
Description
Currently (even in the current github sources) Geolocation cannot do background processing. Is this a matter of removing the instructions from the onPause()/onResume() routines? I think allowing a user to specify allowBackGround: true in their initial construction of a Geolocation object would be wise. This way, we can still do background processing and not have to worry about the app losing focus, and data being randomly sent askew.
+1
Same problem here, with onPause()/onResume() Appcelerator of no use as a geolocation tracker.
Worked for 1ß days on it, to find that geolocation stops when task changes or phone goes to sleep mode.
Running in the background via this method is not recommended but it may be a temporary fix until support could be done by the Titanium developer via a service.
Was following this thread: http://developer.appcelerator.com/helpdesk/view/57011#c292681">http://developer.appcelerator.com/helpdesk/view/57011#c292681
This is how I would like a geonotification function to work:
Ti.App.Geolocation.addNotification(latitude, longitude, beginTime, endTime, accuracy, pollingFrequency, callbackFunction);
Or if not callbackFunction, then at least an alert message.
Would be super awesome!
Would be a great feature for iPhone & Android.
A good addition to Ziggamon's suggestion might be distance changed. For example fire an event every 300 meters.
+1 for the feature and Titanium in general.
Removing iPhone tag. This an android specific ticket.
See #1386
Closing issue due to time passed and irrelevance of the ticket.