NSLocationWhenInUseUsageDescription warning, but I have already added it

前端 未结 5 1185
孤街浪徒
孤街浪徒 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:51

    Well, actually, in my case I needed to put ALL THREE of them like this:

    NSLocationAlwaysAndWhenInUseUsageDescription
    ...
    NSLocationAlwaysUsageDescription
    ...
    NSLocationWhenInUseUsageDescription
    ...
    

    Otherwise, I wouldn't get the pop-up alert asking to allow the Location.

    Note: I develop in Flutter, I don't know if it has any repercussions in this case...

提交回复
热议问题