Skip to content

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

@aviktius

Description

@aviktius

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions