Error with DocumentPicker: Different document picking in progress. Await other document picking first.

Please provide the following:

  1. SDK Version:~48.0.18
  2. Platforms(Android/iOS/web/all):Android
  3. DocumentPicker version: ~11.2.2

I am creating a react native app where DocumentPicker works fine if I pick a file, cancel out of the file explorer without picking a file but if I exit out of the app itself with the file explorer open I am getting the Different document picking in progress. Await other document picking first. error. How to deal with this problem? Could not find anything in the docs or on github or anywhere else really. I tried storing the promise and resolving it when the AppState changes but that didn’t help. Tried adding my code in a try...catch block but it didn’t not help. Any help is appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.