document-picker icon indicating copy to clipboard operation
document-picker copied to clipboard

[Android 13, 14]: DocumentPicker throws an error [Error: User canceled document picker]

Open aviktius opened this issue 1 year ago • 9 comments

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

  1. Update your Android device to the latest OS version (14)
  2. Update the document picker starting from version 8.1.4 (8.1.3 is the last working version in this case)
  3. Pick a file
  4. Get an error

Describe what you expected to happen:

  1. Document picker loads file(s)

Environment info

  • "react-native": "0.72.6"
  • "react-native-document-picker": "9.1.0",

Android version: 14.0

aviktius avatar Dec 15 '23 07:12 aviktius