My application is using core location in background mode, when app is in background mode and sending GPS coordinates periodically, the blue banner "Your app is using your location" is not showing (like google map app for example). Any idea of what I could have missed ?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
It only shows for applications registered for when in use location updates.
To show blue bar, you should
1: Enable
Background Location Updates
in target Capabilities. Then setlocationManager
allowsBackgroundLocationUpdates
to YES;2: Add
NSLocationWhenInUseUsageDescription
ininfo.plist
file (8.0+ ask for location). Then callrequestWhenInUseAuthorization
method notrequestAlwaysAuthorization
method.