NSLocationWhenInUseUsageDescription warning, but I have already added it

前端 未结 5 1247
孤街浪徒
孤街浪徒 2021-02-05 03:29

While I have already added:

NSLocationWhenInUseUsageDescription

I keep receiving this warning:

This app has attempte

5条回答
  •  长发绾君心
    2021-02-05 03:41

    Adding both

    NSLocationAlwaysAndWhenInUseUsageDescription

    and

    NSLocationWhenInUseUsageDescription

    keys in plist solved my problem.

        NSLocationAlwaysUsageDescription
        Your location is required for xyz benefits for you
        NSLocationWhenInUseUsageDescription
        Your location is required for xyz benefits for you
    

提交回复
热议问题