Skip to content
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

File.listDir doesn't work on Android 4.4 #254

Closed
teledemic opened this issue Jun 29, 2016 · 1 comment · Fixed by #283
Closed

File.listDir doesn't work on Android 4.4 #254

teledemic opened this issue Jun 29, 2016 · 1 comment · Fixed by #283
Labels

Comments

@teledemic
Copy link

Seems fine on newer devices / emulators, but my 4.4 test device and 4.4 emulator both fail. I get a promise catch with just the object { "code": "JSON error }

I am accessing the cordova plugin directly to get the cache directory. My call looks like this:

File.listDir(cordova.file.cacheDirectory, "slides").then(list => {
  //do stuff with list
}).catch(err => {
  //receives err = { "code": "JSON error } in Android 4.4
}

Happens on ionic-native 1.2.4 and 1.3.2

@ihadeed
Copy link
Collaborator

ihadeed commented Jun 30, 2016

File plugin is currently being rewritten. This issue should be resolved once the new plugin wrapper is released. I'll keep this open so you get notified when the plugin is published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants