Giter VIP home page Giter VIP logo

Comments (5)

rodrigograca31 avatar rodrigograca31 commented on July 23, 2024

I've seen all those types of paths....
This is the line that returns it:

callbackContext.success(imageUri.getPath());

Also not sure if you ommited some numbers or System.currentTimeMillis() on your phone returns only "160585" 🤔🤔🤔
That could explain some problems I've had on my app.....

from canvas2imageplugin.

rodrigograca31 avatar rodrigograca31 commented on July 23, 2024

Feel free to play with the returned value but not sure I will be able to accept a PR as changing that is a big change.

from canvas2imageplugin.

isaacbdawson avatar isaacbdawson commented on July 23, 2024

Apologies, I edited the original comment, it was late and I must have accidentally cut off the file name of the png.

For clarification.

The issue is not just the path it returns (which appears to be wrong), but where it is actually storing it.
As from my limited research it appears even if it did somehow return the correct path, under Android 10 it wouldn't be accessible to the app itself due to scoped storage.

I guess there is a scenario where all you might need the plugin for is saving the canvas to an image somewhere on the device, and that is it... but I would think most use cases of such a plugin involve actually addressing the image in some manner.

from canvas2imageplugin.

rodrigograca31 avatar rodrigograca31 commented on July 23, 2024

yeah, unfortunately, I don't have enough Android knowledge to be able to fix it in a way that it stores correctly and returns a usable path. 😢

from canvas2imageplugin.

rodrigograca31 avatar rodrigograca31 commented on July 23, 2024

please feel free to send a PR or open a bounty for someone to do it...

from canvas2imageplugin.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.