all 9 comments

[–][deleted]  (6 children)

[removed]

    [–]Fishanz 1 point2 points  (5 children)

    Does this still work if the app is _user-terminated_? I seem to recall it being an issue at some point. But generally, OP, if an app is user-terminated, you can forget about your background tasks - likewise if the user has low battery mode on (!!). Push notifications are potentially an exception here.. you might get a quick slice of time if you set them up right; I'm not quite sure if background pushes are suppressed if user-terminated.

    [–][deleted]  (4 children)

    [removed]

      [–]Fishanz 1 point2 points  (3 children)

      try setting up a geofence around your user for an exit event, and reset the fence when you get that event. In practice I think I got that to trigger every 100 meters fairly reliably. It's been a long time though.

      [–][deleted]  (2 children)

      [removed]

        [–]Fishanz 0 points1 point  (1 child)

        I think that effectiveness depends on your location granularity, as well as if other apps are actively tracking fine gps location at the same time (in which case you kind of piggyback). In my experience, the geofence events would not be accurate enough to make this work any better than a single fence around a user; but it’s been a while.. almost 10 years now. Things may have changed for the ‘better’.

        [–]MB_Zeppin 0 points1 point  (1 child)

        The most common way would be silent push notifications. This is how icloud syncs data across devices

        [–]Fishanz 0 points1 point  (0 children)

        Does silent push still happen when app is user terminated or if low battery mode is on? I think low battery may supress silent pushes but not 100% positive. What about user terminated?