Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2753] iOS: Background Geolocation

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2012-06-26T23:40:57.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelslook1
ReporterRick Blalock
AssigneeRick Blalock
Created2011-04-15T03:28:35.000+0000
Updated2017-03-20T16:59:17.000+0000

Description

This is basically the same ticket as: https://appcelerator.lighthouseapp.com/projects/32238/tickets/1930-allow-geolocation-in-background"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1930-... for Android

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

Customer(s) ticket: http://developer.appcelerator.com/helpdesk/view/57011">http://developer.appcelerator.com/helpdesk/view/57011

Comments

  1. Ben 2011-04-15

    • 1 for this feature, would be a good and needed addition to the Ti framework.
  2. Dawson Toth 2011-04-15

    We have another interested customer.

    Additional Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/51601">http://developer.appcelerator.com/helpdesk/view/51601

  3. abinop 2011-04-15

    Also see my ticket requesting the same think here http://developer.appcelerator.com/helpdesk/view/51601">http://developer.appcelerator.com/helpdesk/view/51601

  4. alex 2011-04-15

    I am also very interested in this feature.

  5. Ben 2011-04-15

    Looks like Android is getting this feature, any timeline around when this will be supported on iOS?

  6. Aristidis Th Gkotsis 2011-04-15

    I have the same problem with this function on iOS. After 15min the app doesn't update the geoposition.

  7. Aristidis Th Gkotsis 2011-04-15

    Also change the priority to high . This function is very important for a lot app. The clients ask for geoposition in their applications. !

  8. Wayne Torrens 2011-04-15

    This is a feature that I need ASAP. I am working on a project that I need to have working by April 2nd (yes, of 2011) to meet my customers needs.

  9. Jon Alter 2011-04-15

    Associated Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/71891#c341821">http://developer.appcelerator.com/helpdesk/view/71891#c341821

  10. Jon Alter 2011-04-15

    another customer requesting this feature

    Associated Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/73191">http://developer.appcelerator.com/helpdesk/view/73191

  11. Jon Alter 2011-04-15

    Associated Helpdesk Ticket

    http://developer.appcelerator.com/helpdesk/view/73071">http://developer.appcelerator.com/helpdesk/view/73071

  12. andrea 2011-04-15

    Hi there,
    but actually on iOs i've already did it with ti sdk 1.5.2 and all works properly.
    The geolocation still working and at the resume event i just need time to load the updated map. What i can't do it to send the information while the app is in background.

    I've just make a small modification the info.plist.
    I'm missing something ?
    Andrea

  13. Ben Weiner 2011-04-15

    This doesn't work for me using 1.6.1 and iOS 4.3. I attach a listener on location and go walk around watching the points update (I'm just adding them to a textarea whenever the event fires). This works perfectly when the app is on. If I put the app in the background it works well too. If I have the app in the foreground and then I lock the screen on my iPhone then the event stops firing until I unlock the screen again. I've added location to backgroundModes in tiapp.xml and made sure that the generated info.plist has UIBackgroundModes containing location correctly.

    Does this really work for others?

  14. Jon Alter 2011-07-18

    Associated Helpdesk Ticket

    http://appc.me/c/APP-857723
  15. Paul Dowsett 2011-12-02

    Reassigning this popular ticket, due to Reggie's absence.
  16. Stephen Tramer 2012-04-17

    tiapp.xml supports the following setting, [documented here](http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/tiapp.xml_and_timodule.xml_Reference):
        <iphone>
          <backgroundModes>
            <mode>location</mode>
          </backgroundModes>
        </iphone>
        
    This should enable geolocation updates for background services. If this works please comment on the ticket so we may mark it INVALID.
  17. Rick Blalock 2012-05-22

    Yeh this is implemented now.
  18. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source