Reputation: 1131
i am developing ionic 1 camera app and Getting Crash with Samsung Galaxy s4
when using camera or gallery. for camera/gallery using cordova camera plugin.I am using below camera options:
var options = {
destinationType: Camera.DestinationType.DATA_URL,
sourceType: sourceType,
encodingType: Camera.EncodingType.PNG,
saveToPhotoAlbum: false,
targetWidth: 250,
quality : 50,
correctOrientation:true
};
App working good with other devices.
Upvotes: 2
Views: 412
Reputation: 1131
After a lot debug i was sure this issue is related to device memory heap. I did write to cordova camera plugin team for the issue here.
They suggest me to respect Android OS life-cycle and it help me to understand reason for crash and solution to get this fix with Cordova 5.1.0+
I will give a try on it, hope this will help to peoples.
Upvotes: 4