-
Notifications
You must be signed in to change notification settings - Fork 760
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
Issue when reading text file from Android Download folder with Android 11 #436
Comments
Verified that a Pixel 3 running Android 10 like Android 11 does not wok. Android 9 and below does work. |
This is already dealt with here: #426 |
Hello, |
Android blocked access to shared folders from API 29 (Android 10) due to privacy issues. |
Duplicate: #426 |
Bug Report
Issue when reading text file from Android Download folder with Android 11
Problem
I have an Ionic 5 app that uses this plugin to read text files from the Download folder on Android devices. On devices running Android 11 it does not work. Devices running Android 9 do work - have not tried on Android 10.
What is expected to happen?
App should be able to read in text file from Android's Download folder
What does actually happen?
The promise for readAsText() returns null
Information
Run on devices with Android 11
Command or Code
Ionic app is using @ionic-native/file/ngx as a wrapper for the cordova-plugin-file plugin.
Again this works for Android 9 devices (have not been able to try on a Android 10 device) but not 11.
Environment, Platform, Device
Ionic 5 with the following configuration
Version information
Using "cordova-plugin-file": "^6.0.2"
Checklist
The text was updated successfully, but these errors were encountered: