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>
参考来源
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/
网友评论