MediaLibray not able to access audio files on ios device

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): iOS

Following is working perfectly on Android:

const media = await MediaLibrary.getAssetsAsync({
        mediaType: MediaLibrary.MediaType.audio,
        first: 1000,
        after: endCursor !== '' ? endCursor : null,
        sortBy: MediaLibrary.SortBy.duration
});

but when trying iPad, it is not returning any media, but if using mediaType as MediaLibrary.MediaType.photo or MediaLibrary.MediaType.video it is working perfectly.

Any pointers to resolve same.

Hey @jain22rohit, out of curiosity, have you tested on an iPhone device or just an iPad? Additionally, could you try creating a new project and seeing if the issue persists on SDK38?

Cheers,
Adam

I tried only Ipad.

Will try with SDK38

Got it. Please let me know about SDK38 and additionally if you could let me know if the issue happens on an iPhone that would be phenomenal.

I don’t have access to iPhone device. Was trying on iPad only.
will update once i try it with SDK38

1 Like

Sounds good. Looking forward to hearing the results.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.