clrss
V2EX  ›  iOS

iOS 定位权限, While Using 和 Always 到底有什么区别?

  •  
  •   clrss · May 27, 2020 · 1909 views
    This topic created in 2194 days ago, the information mentioned may be changed or developed.

    设置成 While Using, app 后台也能定位(比如解锁共享单车后), 屏幕顶部会显示蓝条提醒.

    Always 可能是

    • 后台定位用户无感知?
      • 初步试了下, 设成 Always, app 后台定位也会显示蓝条.
    • 无用户交互也能发起定位请求?

    请做过 iOS App 开发的攻城狮解惑一下.

    2 replies    2020-05-28 17:10:59 +08:00
    jisongkun
        2
    jisongkun  
       May 28, 2020
    我的 gps 记录软件在不开启的情况下可以 24 小史纪录一个月的位置(每五分钟记录一次)。设置了 while using 就不行了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2919 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 129ms · UTC 03:18 · PVG 11:18 · LAX 20:18 · JFK 23:18
    ♥ Do have faith in what you're doing.