-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
[Android 13, 14]: DocumentPicker throws an error [Error: User canceled document picker] #694
Comments
any updates on that? |
Hello and thanks for asking, The tests were executed on real devices including Android 13 and 14 and didn't encounter the issue you're reporting. Not a direct answer, but it is an update 🙂 |
Same issue here. Drop-in replacement |
Thanks, works well for me either |
Hi, The difference with expo's picker is that it uses Action.open_document, but this package uses Action.get_content. You can use Action.open_document with the package for sponsors, see open mode. Also see the differences in the ui for both intent types: https://react-native-documents.github.io/docs/sponsor-only/picker/integrating-on-android |
Got same issuie only on Android14 (on Nothing Phone). Issue fixed after I reverted commit dsecribed here my code in RNDocumentPickerModule.java:157 looks like
I've cheked this reverted code on Android 14, 13, 10 (Huawei P30). P.S. |
On my Google Pixel with Android 14, it also stopped working. I can confirm that reverting the code fixes this issue for me. |
react-native-document-picker+9.3.1.patch |
same issue, please let me know when there is an update |
Bug report
Summary
DocumentPicker throws an error [Error: User canceled document picker] on Android 13 and 14. I found the same issue that has been fixed here which works perfectly with the latest version of the library (including Android 12) but fails on Android 13 and 14 with the same error.
Reproducible sample code
The issue is reproducible on Android devices with 13 and 14 versions of OS.
Steps to reproduce
Describe what you expected to happen:
Environment info
Android version: 14.0
The text was updated successfully, but these errors were encountered: