zoukankan      html  css  js  c++  java
  • iOS10以上App请求用户授权系统设置权限

    <key>NSAppleMusicUsageDescription</key>
        <string>使用媒体资源</string>
        <key>NSBluetoothPeripheralUsageDescription</key>
        <string>是否允许此App使用您的蓝牙?</string>
        <key>NSCalendarsUsageDescription</key>
        <string>是否允许此App使用您的日历?</string>
        <key>NSCameraUsageDescription</key>
        <string>是否允许此App使用你的相机?</string>
        <key>NSContactsUsageDescription</key>
        <string>是否允许此App访问你的通讯录?</string>
        <key>NSLocationWhenInUseUsageDescription</key>
        <string>请点击"允许"以允许访问。
            XX会根据你的所在位置,给你推送优惠券。若不允许,你将无法收到此优惠券的推送。</string>
        <key>NSMicrophoneUsageDescription</key>
        <string>是否允许此App使用你的麦克风?</string>
        <key>NSPhotoLibraryUsageDescription</key>
        <string>是否允许此App访问你的媒体资源库?</string>
        <key>NSSpeechRecognitionUsageDescription</key>
        <string>是否允许此App使用语音识别?</string>

    貌似之后更加严格了,必须交代清楚授权该功能的作用。

    比如:“XXXX”想要访问你的系统相册 如果不允许,你将无法怎样怎样... (微信请求用户授权的写法 )

    此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
  • 相关阅读:
    双端队列广搜
    多源bfs
    leetcode刷题-67二进制求和
    leetcode刷题-66加一
    leetcode刷题-64最小路径和
    leetcode刷题-62不同路径2
    leetcode刷题-62不同路径
    leetcode刷题-61旋转链表
    leetcode刷题-60第k个队列
    leetcode刷题-59螺旋矩阵2
  • 原文地址:https://www.cnblogs.com/liuw-flexi/p/7672937.html
Copyright © 2011-2022 走看看