cordova-plugin-file icon indicating copy to clipboard operation
cordova-plugin-file copied to clipboard

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

Open adeel399 opened this issue 2 years ago • 2 comments
trafficstars

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

adeel399 avatar May 19 '23 17:05 adeel399

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

breautek avatar May 19 '23 18:05 breautek

I am build yhis feature in android as well using ionic and everything works good , ionic does not have issue, i just want to know is that plugin works for ios correctly on ios latest version?

On Fri, 19 May 2023, 11:08 pm Norman Breau, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/apache/cordova-plugin-file/issues/570#issuecomment-1555047300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNUOYHV2GRRGID6QAQMSZ3XG6ZIPANCNFSM6AAAAAAYICH4AQ . You are receiving this because you authored the thread.Message ID: @.***>

adeel399 avatar May 19 '23 18:05 adeel399