Very strange behaviour: after takinf a 2nd or third picture using cordova camera plugin returned picture is green and about 200kb while normally about 2 mb. When taking more 'green' pictures application crashes and default camera screen becomes green untill phone is restarted.
Tryed different parameters like getting url instead of base64, different picture sizes - no luck.
This is reproduced on Nokia Lumia 520, but Microsoft Lumia 535 allowes to take about 6 pictures. While android works fine.
Code looks like:
navigator.camera.getPicture(onSuccess, onFail, {
quality: 50,
destinationType: Camera.DestinationType.DATA_URL,
encodingType: Camera.EncodingType.JPEG,
sourceType : Camera.PictureSourceType.CAMERA
});
Tryed to use capture plugin result is the same.
For me the only solution so far (per microsoft support) is to hard reset your phone. I have an ancient Lumia running windows phone 8.1 and it is having the same issue in my app.
I actually think that the device is overheating.
Also things you should do to help avoid camera issues in your WP app:
I hope this helps you in your painful quest.
You may try this: