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
Remove photo #34
Comments
Hey, a little bit of research turned up that there is no ability on iOS < 8 to delete an image from the camera roll. According to https://developer.apple.com/library/ios/documentation/Photos/Reference/PHAssetChangeRequest_Class/index.html#//apple_ref/occ/clm/PHAssetChangeRequest/deleteAssets you can do this in newer iOS versions but you will need permission from the user to do so. I feel that this is a bit out of the scope of this library though. /cc @cjdell |
Ah, thanks @johanneslumpe! |
You're welcome @skeie |
Hi,
I have this url
assets-library://asset/asset.JPG?id=F970CE98-0BB8-400B-B4C8-AF7A938CF775&ext=JPG
which I am trying to delete, which i get from react-native-cameraI tried to prefix it with both
LibraryDirectoryPath
andDocumentDirectoryPath
, and without a prefix. Thecatch
method is invoked and theerr.message
tells me that the file does not exist.Any suggestion on how to use fs to delete the photo?
The text was updated successfully, but these errors were encountered: