What determines the presence of the iPhone Location Services icon in the status bar?

后端 未结 3 1144
鱼传尺愫
鱼传尺愫 2020-12-06 16:28

Here\'s my situation. I\'m developing an iPhone application that uses Core Location to determine the device\'s location. There is an icon: the Location Services Icon, that

3条回答
  •  孤街浪徒
    2020-12-06 17:06

    There's a known bug that's causing this problem. I reported it to Apple a couple of months ago and was informed that it was a dupe of a known problem. Unfortunately it doesn't appear to have been fixed.

    I first discovered it when I saw the symbol appear (and my app showing as having permission to use location info in the Settings app) simply by installing my app on a device that no longer had the app installed, not having even run it.

    For whatever reason the device keeps a reference to the app having once received permission for location services.

    Worse, if the app actually received permission in the past, then gets uninstalled, then an updated version of the app is installed, not only does the icon appear but the upgraded app no longer actually receives location information because the app never gets to ask the OS for location permission. It's effectively permanently denied.

    Very frustrating for me and a small number of my users.

提交回复
热议问题