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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: