apache / cordova-plugin-file

Apache Cordova File Plugin
https://cordova.apache.org/
Apache License 2.0
740 stars 757 forks source link

When the software starts from boot, cordova-plugin-file cannot mount sdcard correctly when initialized #590

Open x842013824 opened 9 months ago

x842013824 commented 9 months ago

Bug Report

Problem

What is expected to happen?

When the software starts, it wants to read the file under the sdcard normally

What does actually happen?

In fact, reading a file throws an ENCODING ERR error

Information

Through debugging, I found that the sdcard was not mounted when the device was just booted and was mounted after the plugin was initialized

Command or Code

In the case of unplugging the sdcard, start the software and reinsert the sdcard

Environment, Platform, Device

Android 10 Device

Version information

What are relevant versions you are using? cordova-plugin-file 6.0.2