美文网首页iOS开发工具和框架
iOS info.Plist 文件中各种权限,以后就从这里拷贝!

iOS info.Plist 文件中各种权限,以后就从这里拷贝!

作者: 酒红色T恤 | 来源:发表于2017-07-25 16:59 被阅读386次

每次用到那些权限的相关描述都是上百度,今天索性整理一下。按照常用指数进行罗列

1.常用指数:❤️ ❤️ ❤️ ❤️ ❤️

    <key>NSCameraUsageDescription</key>
    <string>App需要使用您的相机</string>
   <key>NSPhotoLibraryUsageDescription</key>
    <string>App需要访问您的相册</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>App需要您的同意,才能在使用期间访问位置</string>
   <key>NSLocationUsageDescription</key> 
   <string>App需要您的同意,才能访问位置</string> 
  <key>NSLocationAlwaysUsageDescription</key> 
  <string>App需要您的同意,才能始终访问位置</string> 

2.常用指数:❤️ ❤️ ❤️ ❤️

    <key>NSMicrophoneUsageDescription</key>
    <string>需要访问您的麦克风</string>
   <key>NSAppleMusicUsageDescription</key> 
   <string>App需要您的同意,才能访问媒体资料库</string>

3.常用指数:❤️ ❤️

<key>NSCalendarsUsageDescription</key> 
<string>App需要您的同意,才能访问日历</string> 
<key>NSRemindersUsageDescription</key> 
<string>App需要您的同意,才能访问提醒事项</string> 
<key>NSMotionUsageDescription</key> 
<string>App需要您的同意,才能访问运动与健身</string> 
<key>NSHealthUpdateUsageDescription</key> 
<string>App需要您的同意,才能访问健康更新 </string> 
<key>NSHealthShareUsageDescription</key> 
<string>App需要您的同意,才能访问健康分享</string> 
<key>NSBluetoothPeripheralUsageDescription</key> 
<string>App需要您的同意,才能访问蓝牙</string>

4.利用URLSchems 代开App白名单

<key>LSApplicationQueriesSchemes</key>
 <array>
 
    <!-- 微信 URL Scheme 白名单-->
    <string>wechat</string>
    <string>weixin</string>

    <!-- 新浪微博 URL Scheme 白名单-->
    <string>sinaweibohd</string>
    <string>sinaweibo</string>
    <string>sinaweibosso</string>
    <string>weibosdk</string>
    <string>weibosdk2.5</string>

    <!-- QQ、Qzone URL Scheme 白名单-->
    <string>mqqapi</string>
    <string>mqq</string>
    <string>mqqOpensdkSSoLogin</string>
    <string>mqqconnect</string>
    <string>mqqopensdkdataline</string>
    <string>mqqopensdkgrouptribeshare</string>
    <string>mqqopensdkfriend</string>
    <string>mqqopensdkapi</string>
    <string>mqqopensdkapiV2</string>
    <string>mqqopensdkapiV3</string>
    <string>mqzoneopensdk</string>
    <string>wtloginmqq</string>
    <string>wtloginmqq2</string>
    <string>mqqwpa</string>
    <string>mqzone</string>
    <string>mqzonev2</string>
    <string>mqzoneshare</string>
    <string>wtloginqzone</string>
    <string>mqzonewx</string>
    <string>mqzoneopensdkapiV2</string>
    <string>mqzoneopensdkapi19</string>
    <string>mqzoneopensdkapi</string>
    <string>mqzoneopensdk</string>

    <!-- 支付宝  URL Scheme 白名单-->
    <string>alipay</string>
    <string>alipayshare</string>
    
    <!-- 地图  URL Scheme 白名单-->
    <string>iosamap</string>
    <string>baidumap</string>
</array>

相关文章

网友评论

    本文标题:iOS info.Plist 文件中各种权限,以后就从这里拷贝!

    本文链接:https://www.haomeiwen.com/subject/osxgkxtx.html