Location Services not working in iOS 8

前端 未结 26 2050
滥情空心
滥情空心 2020-11-21 10:23

My app that worked fine on iOS 7 doesn\'t work with the iOS 8 SDK.

CLLocationManager doesn\'t return a location, and I don\'t see my app under

26条回答
  •  自闭症患者
    2020-11-21 10:44

    In order to access the users location in iOS. You need to add two keys

    NSLocationWhenInUseUsageDescription

    NSLocationAlwaysUsageDescription

    into the Info.plist file.

        NSLocationWhenInUseUsageDescription
        Because I want to know where you are!
        NSLocationAlwaysUsageDescription
        Want to know where you are!
    

    See this below image.

提交回复
热议问题