cordova - Camera.DestinationType.FILE_URI is not working on IOS only -
we have migrated worklight 6.1 application t ibm mobilefirst 7.0 platform , functionalities working expected on android environment, in ios facing issue: there function called "quick receipt". on click on button device camera opens , photo taken. problem photo not displaying - returns complete blank page issue on ios device not on android device. camera.destinationtype.file_uri not working on ios.
for security reason wont share code. here similar prototype code.
html
<div><img alt="quickreceipts" src="resources/img/camera.png" onclick="imgcapture();"</div>
javascript
imgcapture: function (){ navigator.camera.getpicture(this.onsuccess, this.onfail,{quality:80,destinationtype:camera.destinationtype.file_uri, targetwidth:600,targetheight:1050} }, onsuccess:function(imgdata) { // applying css , displaying img $("#imgreceipt").attr("src","data:image/jpeg;base64," +imgdata); $("#imgreceipt").css("display", "block"); } onfail:function(imgdata){ // failure msg }
one suggestion attempt code change mentioned nazmul: http://www.telerik.com/forums/ios-cordova-3-5-0-camera-getpicture-targetwidth-issue.
another suggestion upgrade latest 7.1 ifix ibm fix central contains several cordova corrections , may address issue.
if issue not resolved still, suggest open ibm pmr (support ticket).
Comments
Post a Comment