Chaipravit Srimokaun

Results 7 comments of Chaipravit Srimokaun

**cordova-plugin-camera version 4.1.0** work normally but v5.0.0 not work :(

Now i'm use [cordova-plugin-crop](https://github.com/jeduan/cordova-plugin-crop) for Crop an image after take picture ``` var options = { quality : 80, destinationType : Camera.DestinationType.FILE_URI, sourceType : Camera.PictureSourceType.CAMERA, encodingType: Camera.EncodingType.JPEG, // allowEdit :...

i try replace this code ` platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java ` ``` @Override public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) { // return this.assetLoader.shouldInterceptRequest(request.getUrl()); return super.shouldInterceptRequest(view, request); } ```

Line 877 in CDVCamera.m try change `self.data` to `imageDataWithExif` ``` if (![imageDataWithExif writeToFile:filePath options:NSAtomicWrite error:&err]) { ```

iOS 14/13 Working fine with freeRASP: 5.4.0 But if upgrade to 6.0.0 or upper App not working after install plugin

Temporary solution for this problem. i use [BabelJS](https://babeljs.io/repl) Javascript Transpiler your www/talsec.js files to ES5 now my app working fine on iOS 14 with RASP: 7.3.0 (ES5 talsec.js)

I think the problem is Static class fields support iOS 14.5 and above. https://caniuse.com/?search=JavaScript%20classes%3A%20Static%20class%20fields https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#browser_compatibility ![IMG_0014](https://github.com/user-attachments/assets/5fb17381-9ad4-457d-a6bf-f2a4389b1c1e) ### My app working after replace your script `class Threat` by using [BabelJS](https://babeljs.io/repl) ```...