requestAlwaysAuthorization not showing permission alert

前端 未结 17 1177
我寻月下人不归
我寻月下人不归 2020-12-29 20:19

I\'m trying to use some fancy iBeacons without success, kCLAuthorizationStatusNotDetermined all time. According to other questions it\'s a requirement to add those keys to

17条回答
  •  悲哀的现实
    2020-12-29 21:03

    I got a similar problem recently with IOS 11 when I tried to use

    locationManager.requestAlwaysAuthorization()
    

    The solution for me was to add all the 4 permissions in plist.info to get the alert:

    • Privacy - Location When In Use Usage Description
    • Privacy - Location Usage Description
    • Privacy - Location Always Usage Description
    • Privacy - Location Always and When In Use Usage Description

提交回复
热议问题