Location Services not working in iOS 11

前端 未结 8 566
春和景丽
春和景丽 2020-11-27 14:59

I just rebuilt my app with the iOS 11 SDK in an attempt to remove the blue banner that is now always appearing. I thought - \"Brilliant, that worked\", only to

8条回答
  •  余生分开走
    2020-11-27 15:12

    Swift : 3 i have faced the same issue. i was totally screwed up finding the solution. here is how i fixed the issue.

    step-1 : Project file > Capabilities > background modes > select Location Update

    step-2 : Add NSLocationWhenInUseUsageDescription , NSLocationAlwaysAndWhenInUseUsageDescription keys to Info.plist

    step-3 :

    manager.pausesLocationUpdatesAutomatically = false
    manager.allowsBackgroundLocationUpdates = true
    

提交回复
热议问题