科尔多瓦插件相机显示"Take Photo"即使选择照片库作为源类型



我使用Cordova-plugin-camera从电话库上传用户照片。因此,我通过了sourceType: Camera.PictureSourceType.PHOTOLIBRARY。这些是我的设置:

cameraOptions = {
  quality: 100,
  destinationType: Camera.DestinationType.DATA_URL,
  sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
  allowEdit: true,
  encodingType: Camera.EncodingType.JPEG,
  popoverOptions: CameraPopoverOptions,
  targetWidth: 600,
  targetHeight: 600,
  saveToPhotoAlbum: false,
  correctOrientation: true
};

当我在Ionic View中运行应用程序时,我仍然看到选项"拍照"。我点击它,我的相机打开,让我拍照。我拍完照片后,手机会把我转到照片库。基本上,是的,我不能拍照,但这个选项仍然存在。有可能不表现出来吗?这让我很困惑。

尝试将camera . picturesourcettype . photollibrary替换为数字0

相关内容

最新更新