ICEmobile
  1. ICEmobile
  2. MOBI-1113

IOS8 GeoTracker not running in background

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: BridgeIt 1.0.4
    • Fix Version/s: BridgeIt 1.0.5
    • Component/s: Containers
    • Labels:
      None
    • Environment:
      IOS8

      Description

      We've seen intermittent geo tracking when enabled on IOS 8. As it turns out there is a slightly new security model that we are not adhering to.

      When setting up a back ground locationManager we need to do a couple things:

      1.) make sure the locationManager has a strong reference
      2.) If IOS 8 we call [self.locationManager requestAlwaysAuthorization]; to get the new authorization alert dialog which the user must agree too.
      3.) And finally we need to add a new key "NSLocationAlwaysUsageDescription" to the BridgeIt-Info.plist which specifies the subtext for the dialog in 2.)

      Once these steps are complete the background service for location properly runs.

        Activity

        Hide
        Patrick Corless added a comment -

        Testing is complete on 7 and 8 and things are working more predictably now. One side note is that when [self.locationManager requestAlwaysAuthorization]; is called, the dialog that appear doesn't seem to block and our auto redirect back to the browser is called. I've added a flag that tests for kCLAuthorizationStatusNotDetermined and we skip the redirect.

        Show
        Patrick Corless added a comment - Testing is complete on 7 and 8 and things are working more predictably now. One side note is that when [self.locationManager requestAlwaysAuthorization] ; is called, the dialog that appear doesn't seem to block and our auto redirect back to the browser is called. I've added a flag that tests for kCLAuthorizationStatusNotDetermined and we skip the redirect.
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: