iOS8: Blue bar “is Using Your Location” appears shortly after exiting app

后端 未结 6 1152
慢半拍i
慢半拍i 2020-12-25 10:40

I would like to get the blue bar when tracking in the background, but not when not.

My app uses location services all the time when active, so in iOS8 I use the

6条回答
  •  一生所求
    2020-12-25 11:17

    If you follow steps below, Blue bar will not appear in background mode

    • set NSLocationAlwaysUsageDescription in Info.plist
    • check Capabilities > Background Modes > Location Updates
    • in code locationManager.requestAlwaysAuthorization()

提交回复
热议问题