Cordova App iOS 摄像头打不开

60 阅读1分钟

Cordova App iOS 摄像头打不开问题解决

使用 cordova-plugin-camera

添加插件 cordova plugin add cordova-plugin-camera 在ios/app-project/app-project-Info.plist中添加

<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
    <string>need camera access to take pictures</string>
</edit-config>

<dict>
  <key>NSCameraUsageDescription</key>
  <string>cameraDesciption</string>
</dict>

参考来源

cordova.apache.org/docs/en/lat…