text #inAppMessage #camera

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text #inAppMessage #camera相关的知识,希望对你有一定的参考价值。

https://stackoverflow.com/questions/39631256/request-permission-for-camera-and-library-in-ios-10-info-plist/39631642
https://stackoverflow.com/questions/33866135/swift-ios-9-app-not-in-settings

Camera :
Key       :  Privacy - Camera Usage Description   
Value     :  $(PRODUCT_NAME) camera use

// Check status
let authStatus = AVCaptureDevice.authorizationStatusForMediaType(AVMediaTypeVideo)
switch authStatus {
case AVAuthorizationStatus.Authorized:
    print("AVAuthorizationStatus.Authorized")
case AVAuthorizationStatus.Denied:
    print("AVAuthorizationStatus.Denied")
case AVAuthorizationStatus.NotDetermined:
    print("AVAuthorizationStatus.NotDetermined")
case AVAuthorizationStatus.Restricted:
    print("AVAuthorizationStatus.Restricted")
default:
    print("AVAuthorizationStatus.Default")
}

// Request permission
AVCaptureDevice.requestAccess(for: AVMediaType.video) { response in
    if response {
        //access granted
    } else {

    }
}

以上是关于text #inAppMessage #camera的主要内容,如果未能解决你的问题,请参考以下文章

text #inAppMessage #microphone

text #inAppMessage #pushNotification

Firebase inAppMessaging 事件未被捕获

iOS:将 Firebase InAppMessaging 与 Cordova 项目集成

Firebase InAppMessaging 使用“-[NSBundle initWithURL:]: nil URL argument”使我的项目崩溃

CamerαP2P怎么设置Ftp