apache / apache/cordova-plugin-file

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

Open
#570 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
744
Forks
754
Avg merge
3d 4h
Merged PRs (30d)
1

Description

# 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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied listDir call in the reported Ionic project and trace the listDir entry point on iOS versus Android. Confirm whether the iOS result contains the expected album names and, when given a directory name, its photos and videos; use the reported environment details when checking the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.