Skip to content
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

Save base64 image on Android 10 - Cordova plugin - Bountysource #10

Closed
rodrigograca31 opened this issue Nov 8, 2019 · 4 comments · Fixed by #15
Closed

Save base64 image on Android 10 - Cordova plugin - Bountysource #10

rodrigograca31 opened this issue Nov 8, 2019 · 4 comments · Fixed by #15
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@rodrigograca31
Copy link
Owner

The problem seems to be getExternalStoragePublicDirectory being deprecated

.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);

Error:

11-08 21:37:58.104  4284  4568 E Canvas2ImagePlugin: An exception occured while saving image: java.io.FileNotFoundException: /storage/emulated/0/Pictures/c2i_8102019213758103.jpg: open failed: EACCES (Permission denied)

Not working on Android 10 was previously mentioned in #4 ....

@rodrigograca31
Copy link
Owner Author

@rodrigograca31
Copy link
Owner Author

Will be implemented ASAP, if anyone wants to help please send a PR. ❤️

@rodrigograca31
Copy link
Owner Author

Actually Im not sure thats the line that makes it not work on Android 10 because its only deprecated not removed...

That said seems the best route is to make this plugin use MediaStore to write the images to a folder.

So if anyone wants to do that I'd appreciate it very much and will even pay you a few bucks! 🤑 💵

@rodrigograca31 rodrigograca31 added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Jan 27, 2020
@rodrigograca31 rodrigograca31 changed the title Not working on Android 10 Save base64 image on Android 10 - Cordova plugin Feb 9, 2020
@rodrigograca31 rodrigograca31 changed the title Save base64 image on Android 10 - Cordova plugin Save base64 image on Android 10 - Cordova plugin - Bountysource Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant