Please provide the following:
- SDK Version: 34
- Platforms(Android/iOS/web/all): Android
As the title says I’m getting an error when trying to add Assets To Album.
console of el the image I’m trying to move returns:
{
"height": 1495,
"uri": "file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540impactcolor%252Feagle-eye-property-inspections/ImageManipulator/e9425def-f27f-4da6-907f-24f484b34fd7.jpg",
"width": 900,
}
These images are contained in an array so I loop over them like so:
this.state.captures.forEach(async (el) => {
console.log('this is asset el')
console.log(el)
await MediaLibrary.addAssetsToAlbumAsync([el.uri], this.state.albumId, false).then(result => console.log(result))
})
the error I get is:
[Unhandled promise rejection: Error: Could not get all of the requested assets]
Any ideas why?