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

listDir is not working in ios gives me nothing while in android everything works good #570

Open
adeel399 opened this issue May 19, 2023 · 2 comments

Comments

@adeel399
Copy link

Bug Report

using listdir in ionic capacitor project gives me no albums on ios also i am not able to get any photos from albums in iphone local photos app
while in android everythings works ok

Problem

What is expected to happen?

It should show all the available albums name and also if u provide directory name then should gives us all video and photos in it

Command or Code

this.fileNavigator.listDir(this.fileNavigator.dataDirectory, '').then(async entries => {
this.folderdata=entries;
})

Environment, Platform, Device

Ionic:

Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.6.8
@angular-devkit/build-angular : 12.0.2
@angular-devkit/schematics : 12.0.2
@angular/cli : 12.0.2
@ionic/angular-toolkit : 4.0.0

Utility:

cordova-res : 0.15.4
native-run (update available: 1.7.2) : 1.3.0

System:

NodeJS : v14.20.0 (/usr/local/bin/node)
npm : 6.14.17
OS : macOS

Checklist

  • [ x] I searched for existing GitHub issues
  • [ x] I updated all Cordova tooling to most recent version
  • [ x] I included all the necessary information above
@breautek
Copy link
Contributor

Please try in a sample cordova app without the use of the ionic framework.

This will help us:

  1. Rule out anything that ionic might be doing
  2. Reference the actual Cordova API instead of Ionic's API.

If the issue is reproducible in that sample app, then please do share it. Likewise if the issue does not reproduce, then that suggests that the problem might be at a higher level.

Thanks

@adeel399
Copy link
Author

adeel399 commented May 19, 2023 via email

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

No branches or pull requests

2 participants