Details
-
Type: Bug
-
Status: Resolved
-
Priority: 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.
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
Patrick Corless
created issue -
Patrick Corless
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | BridgeIt 1.0.5 [ 11574 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
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.