-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ionic Capacitor - Android 10 - FileNotFoundException #82
Comments
This could also be related: 2020-08-03 13:42:50.749 1278-1278/? E/Util: writeImageDataToRequestedUri : failed to make directory or the directory already existed. |
Me too. Android 10 it never shows the image crop screen. |
I solved the problem with the solution provided on this issue : apache/cordova-plugin-file#408 By adding |
Hey sorry I have been inactive for a while. I tested this with an Android 10 phone but I could not replicate it. I double checked if it was compiling with api level 29 as well. Could this be a device specific issue? or an ionic specific issue ? I tested with vanilla cordova. Do let me know if you guys have any info, work on this plugin is going to become a huge focus now so I will be dedicating a considerable amount of time to fixing any issues that are cropping up. |
Released a new beta version of the plugin. To test it :-
If you guys could help by testing this beta version and let me know if it solved your issue, I can release the 5.0.0 version. Latest plugin also solves this issue |
Hi @ChrisTomAlx , Thanks for the update, I will give a try without adding And it's weird that you don't had the issue on your device, I was personally running the application on a Honor 10 view. Ionic:
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.10
Cordova:
Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 9.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 1.2.1, (and 10 other plugins)
Utility:
cordova-res : 0.15.1
native-run : 1.0.0
System:
Android SDK Tools : 26.1.1 (/home/ajrdev/Android/Sdk)
NodeJS : v10.0.0 (/usr/local/bin/node)
npm : 5.6.0
OS : Linux 5.4
I'll keep you posted, have a nice day as well :) |
Thanks @AJRdev Also the |
Hello, Does it possible to add requestLegacyExternalStorage into config.xml cordova file? Thank you |
I've just rebuild the project with the requestLegacyExternalStorage attribute but still doesn't works. |
With cordova cli 10 it looks that doesn't exists "cordova-plugin-androidx" plugin. |
@scramatte if you are using version 5.0.0-beta.0 of the plugin, please refer to this comment |
@ChrisTomAlx |
@scramatte even after adding |
@scramatte you might be interested in this discussion |
Describe the bug
I am trying to use this plugin with ionic capacitor and on Android 10 it never shows the image crop screen, caused by the following exception:
2020-08-03 13:26:05.320 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)4 dur=8 res=0x1 s={false 0} ch=false 2020-08-03 13:26:05.321 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: stopped(false) old=true 2020-08-03 13:26:05.328 27707-27707/si.test.app W/System.err: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:315) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:220) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1505) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1427) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at com.scanlibrary.PickImageFragment.getBitmap(PickImageFragment.java:388) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at com.scanlibrary.PickImageFragment.onActivityResult(PickImageFragment.java:315) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.Activity.dispatchActivityResult(Activity.java:8321) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.ActivityThread.deliverResults(ActivityThread.java:5230) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.ActivityThread.handleSendResult(ActivityThread.java:5278) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2220) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.os.Looper.loop(Looper.java:237) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8016) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 2020-08-03 13:26:05.329 27707-27707/si.test.app W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076) 2020-08-03 13:26:05.330 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: stopped(false) old=false 2020-08-03 13:26:05.339 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=8 res=0x7 s={true 502479515648} ch=true 2020-08-03 13:26:05.339 27707-27948/si.test.app D/OpenGLRenderer: createReliableSurface : 0x75f8c71ac0(0x74fe1cf000) 2020-08-03 13:26:05.339 27707-27948/si.test.app I/mali_winsys: new_window_surface() [1080x2280] return: 0x3000 2020-08-03 13:26:05.342 27707-27948/si.test.app D/OpenGLRenderer: makeCurrent EglSurface : 0x0 -> 0x756a168200 2020-08-03 13:26:05.345 27707-27707/si.test.app D/ViewRootImpl@9f2e8cd[ScanActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2020-08-03 13:26:05.346 27707-27707/si.test.app D/InputMethodManager: prepareNavigationBarInfo() DecorView@d4f4b1e[ScanActivity] 2020-08-03 13:26:05.346 27707-27707/si.test.app D/InputMethodManager: getNavigationBarColor() -855310 2020-08-03 13:26:05.347 27707-27707/si.test.app D/InputMethodManager: prepareNavigationBarInfo() DecorView@d4f4b1e[ScanActivity] 2020-08-03 13:26:05.347 27707-27707/si.test.app D/InputMethodManager: getNavigationBarColor() -855310 2020-08-03 13:26:05.347 27707-27707/si.test.app V/InputMethodManager: Starting input: tba=si.test.app ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2020-08-03 13:26:05.347 27707-27707/si.test.app D/InputMethodManager: startInputInner - Id : 0 2020-08-03 13:26:05.347 27707-27707/si.test.app I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Document content returned to the app.
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: