Foliotek / Croppie

A Javascript Image Cropper
http://foliotek.github.io/Croppie
MIT License
2.56k stars 885 forks source link

Cordova App iOS - not returning result #732

Closed dhwalin closed 4 years ago

dhwalin commented 4 years ago

This is little weird but I have made a Cordova App. Few months ago, iOS has stopped UIWebView & told developer to develop in WKWebView.

So I have installed Cordova WKWebView Engine, everything is perfectly but Croppie start giving error. Croppie is getting initialized but it is not getting result. It is not entering to “then” function in result.

No result is appearing in console log.

$('#save_btn').on('click',function(ev){

croppie_element.croppie('result', { type: 'canvas', size: { width: 200, height: 200 }, format: 'png', circle:true, }).then(function (canvas) { console.log(“croppie result”) $('#img_block').append(''); }); });

dhwalin commented 4 years ago

Promise Error:

CROPPIE ERR SecurityError: The operation is insecure.

Update: Closing because it is not related to croppie.

gmbad commented 2 years ago

Hi @dhwalin!

I have the same problem here. In browser works fine, but on cordova result in error.

Did you manage to find a solution?

Tks