• info.plist文件里面添加描述 -> 配置定位,相册等


    <key>NSAppleMusicUsageDescription</key>

    <string>App需要您的同意,才能访问媒体资料库</string>

    <key>NSBluetoothPeripheralUsageDescription</key>

    <string>App需要您的同意,才能访问蓝牙</string>

    <key>NSCalendarsUsageDescription</key>

    <string>App需要您的同意,才能访问日历</string>

    <key>NSCameraUsageDescription</key>

    <string>App需要您的同意,才能访问相机</string>

    <key>NSHealthShareUsageDescription</key>

    <string>App需要您的同意,才能访问健康分享</string>

    <key>NSHealthUpdateUsageDescription</key>

    <string>App需要您的同意,才能访问健康更新 </string>

    <key>NSLocationAlwaysUsageDescription</key>      //后台定位耗电

    <string>App需要您的同意,才能始终访问位置</string>

    <key>NSLocationUsageDescription</key>

    <string>App需要您的同意,才能访问位置</string>

    <key>NSLocationWhenInUseUsageDescription</key>

    <string>App需要您的同意,才能在使用期间访问位置</string>

    <key>NSMicrophoneUsageDescription</key>

    <string>App需要您的同意,才能访问麦克风</string>

    <key>NSMotionUsageDescription</key>

    <string>App需要您的同意,才能访问运动与健身</string>

    <key>NSPhotoLibraryUsageDescription</key>

    <string>App需要您的同意,才能访问相册</string>

    <key>NSRemindersUsageDescription</key>

    <string>App需要您的同意,才能访问提醒事项</string>

    <key>UIBackgroundModes</key>
    ---------------------
    添当前的位置会持续使用GPS定位服务,相比其他操作会消耗更多的电量.GPS在使用期间会影响电池续航时间.   在上线的时候需要特别注明,不然审核通不过。

    打开编辑:项目>TARGETS>Info>Custom iOS Target Properties 添加

  • 相关阅读:
    策略思维模式
    初学者之心
    《计算机思维》笔记
    通才论
    Shell 脚本中 set ex 命令的作用
    Python—requests模块详解
    SharePoint CSOM 迁移列表项权限
    实践剖析.NET Core如何支持Cookie和JWT混合认证、授权
    面试突击13:方法优先调用可选参数还是固定参数?
    如何构建一个疾病的动物模型? | animal model of disease
  • 原文地址:https://www.cnblogs.com/zzsdream/p/10051888.html
Copyright © 2020-2023  润新知