-
-
Notifications
You must be signed in to change notification settings - Fork 8
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 11 : pdf document throw com.android.providers.media.documents throw NullpointerException #7
Comments
It's look like version 1.1.6 fix this issue, but not yet available in npm. Thanks, |
@alexist it is now released! |
@farfromrefug @alexist |
@kislasi emulator? |
@farfromrefug yes on android emulator |
@kislasi ok test on real device. For me 60% of the time it returns null on emulator. |
@farfromrefug |
@kislasi ok seems like a bug then. Dont really have time to debug this those days. Could you create a simple repro example? |
on android 10 the log is: SUCCESS true @farfromrefug is it what you need? |
@kislasi thanks i ll try to reproduce but dont know when though :s |
Version 1.1.6 fix my issue for both emulator and device android 11. Can you attach logcat output ? The logcat log when i select a PDF document in Document folder is : 2021-06-30 08:59:27.778 23695-23695/yourpackage D/[FilePath plugin]:: File - Authority: com.android.providers.media.documents, Fragment: null, Port: -1, Query: null, Scheme: content, Host: com.android.providers.media.documents, Segments: [document, document:30] |
Hi @alexist |
I'm also having the same problem, does anyone have a solution? |
the same problem here, any solution? |
@Ederagp working on it. But the bug is not only here but in N too. We need to fix this in N |
Hi @farfromrefug |
When i select a pdf document, the content uri is
Logcat logs :
FilePath.getPath is looking for a media document
The docId is document:30, type is "document"
But doesn't handle "document"
=> contenUri is Null
The text was updated successfully, but these errors were encountered: