Javascript phonegap 3.2 camera.getPicture不显示摄像头视图
当我尝试navigator.camera.getPicture时,本机相机视图不会显示。要让它看起来像我必须重新打开应用程序或向上滑动(它会打开控制中心和相机视图)。 我正在使用Backbone.js和Ratchet 我的代码:Javascript phonegap 3.2 camera.getPicture不显示摄像头视图,javascript,ios,backbone.js,cordova,cordova-3,Javascript,Ios,Backbone.js,Cordova,Cordova 3,当我尝试navigator.camera.getPicture时,本机相机视图不会显示。要让它看起来像我必须重新打开应用程序或向上滑动(它会打开控制中心和相机视图)。 我正在使用Backbone.js和Ratchet 我的代码: cameraClickHandler: function () { navigator.camera.getPicture(this.cameraSuccess, this.cameraFail, quality
cameraClickHandler: function () {
navigator.camera.getPicture(this.cameraSuccess, this.cameraFail,
quality: 75,
correctOrientation: true,
destinationType: Camera.DestinationType.FILE_URI,
saveToPhotoAlbum: true,
sourceType : Camera.PictureSourceType.CAMERA,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 600,
targetHeight: 600
}
);
}
我得到的错误是:
THREAD WARNING: ['Camera'] took '613.226807' ms. Plugin should use a background thread.
Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
有什么想法吗