Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1930] Allow Geolocation in background

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T03:05:57.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M10
ComponentsAndroid
Labelsandroid, background, feature, geolocation, gps, klist, release-1.6.0
ReporterRalf Pfeiffer
AssigneeDon Thorp
Created2011-04-15T03:05:54.000+0000
Updated2017-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.

Comments

  1. Kleppten 2011-04-15

    +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.

  2. Don Thorp 2011-04-15

    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.

  3. ziggamon 2011-04-15

    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!

  4. Ben 2011-04-15

    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.

  5. Don Thorp 2011-04-15

    Removing iPhone tag. This an android specific ticket.

  6. Don Thorp 2011-04-15

    See #1386

  7. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source