search

Home  >  Q&A  >  body text

ios - 为什么隐私设置的定位服务里没有我的app?

我的app要用到定位,
在真机测试的时候发现隐私设置里的定位服务列表里没有我的app,
也没有提示我是否允许使用定位,
这样就无法开启定位服务了
请问这是什么问题?
补充:在iphone4s上 隐私设置里是有的,但是到了iphone5 和iphone6 就没有了,
不知道跟这个有关系吗?

PHP中文网PHP中文网2869 days ago3115

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-17 14:01:25

    It definitely has nothing to do with the phone, it should have something to do with the system.

    Addedplist? Reference here

    reply
    0
  • PHPz

    PHPz2017-04-17 14:01:25

    The correct answer upstairs is that you need to register in the plist. The model you mentioned should not be affected. I think it is the system version. The iOS positioning registration method has changed in sdk8.0

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:01:25

    For iOS8 system, these two parameters need to be added to the plist file
    NSLocationAlwaysUsageDescription = YES
    NSLocationWhenInUseUsageDescription = YES

    reply
    0
  • Cancelreply