zoukankan      html  css  js  c++  java
  • 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 添加

  • 相关阅读:
    关于Unity中Mecanim动画的重定向与动画混合
    php远程抓取网站图片并保存
    OpenResty最佳实践
    111
    安装Nginx+Lua+OpenResty开发环境配置全过程实例
    ecshop常用的一些变量
    php 常用的标签比较
    PHP 设计模式
    mysql导入sql脚本
    linux 解压压缩大全
  • 原文地址:https://www.cnblogs.com/zzsdream/p/10051888.html
Copyright © 2011-2022 走看看