Coder Social home page Coder Social logo

Comments (5)

olokobayusuf avatar olokobayusuf commented on July 30, 2024 1

I'll look into this. Your code looks good.

from natshare.

olokobayusuf avatar olokobayusuf commented on July 30, 2024

Is your Texture2D a readable texture? Can you share a screenshot of the sharing options provided by iOS?

from natshare.

oleyb avatar oleyb commented on July 30, 2024

I capture the screenshot with the following code:

`
Texture2D screenshot = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);
screenshot.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0, false);
screenshot.Apply();

NatShare.Share(screenshot, () => {
isCapturing = false;
Destroy(screenshot);
});
`

I found that "SaveToCameraRoll(screenshot)" isn't working for me either, but if I share to a messaging or image editing app, it delivers the image properly.

For options to share I get: Copy, Assign to Contact, Print, Save to Files, Create Watch Face, and More. Under "More" there are two unchecked "Import to VSCO" and "Save to Dropbox" but no "Save Image". I used to have the save image asset in previous builds, but not sure where it went... It's likely that it's something dumb I'm doing. I can't test the build at the moment, but maybe it's the Destroy call in the callback?

from natshare.

oleyb avatar oleyb commented on July 30, 2024

When trying on another iOS device, the "Save Image" button is the first option. I wonder why it's not there at all on my first device?

from natshare.

olokobayusuf avatar olokobayusuf commented on July 30, 2024

If this is device-specific, then it isn't a bug in NatShare itself. That said, what iOS versions are the original and new test devices running?

from natshare.

Related Issues (20)

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.