Giter VIP home page Giter VIP logo

Comments (5)

yasirkula avatar yasirkula commented on August 24, 2024

I haven't tested the plugin in VR actually. The error messages look pretty useful but googling them didn't reveal any search results and I don't know why some parental controls would interfere with the sharing and how to overcome it. I couldn't even find any documentation about sharing in VR 😞

This issue will probably remain open for some time.

from unitynativeshare.

hybridherbst avatar hybridherbst commented on August 24, 2024

Came here because of the same issue.

Some more info:

  • share dialog works when Subject & Text & URL is added, but then the file is ignored - so, it just shares as URL + Description
  • share dialog doesn't work when only a file is added
  • share dialog doesn't work when a file and a subject are added

This is also logged:

2022/11/03 22:02:54.016 2471 3159 Info [OAO] DialogControllerManager New dialog: type: social_host_share_sheet, uri "?type=external_link&source=android_2d_app&payload=&overrides=%7B%7D"
2022/11/03 22:02:55.124 19059 19132 Error RCTVR_HERMES [error]: 'UniversalShareSheet', [ 'Error constructing share object from params: {}, type: external_link},\n      source: android_2d_app,\n      payload: ,\n      overrides: {}' ]

from unitynativeshare.

yasirkula avatar yasirkula commented on August 24, 2024

Is it possible to share files via Oculus Quest 2's own Gallery app or Files app (if exists)? I wonder if file sharing isn't possible at all on Oculus Quest 2. PS. If sharing is possible from stock apps, could you check their share logs as well? Maybe we can spot a difference in logs.

from unitynativeshare.

hybridherbst avatar hybridherbst commented on August 24, 2024

I believe it's possible - the share sheet pops up and has three options, "Facebook", "Facebook groups" and "Messenger" - and if one shares via that, a post appears in that place just fine. Only the image is missing (depending on the parameters, as outlined above).

I don't think other apps like Gallery use that share functionally though, they don't have a direct button to share as far as I'm aware, but will check.

Tangentially related, the new Instagram app on Quest doesn't support file sharing intents yet (it's a PWA and the file handler protocols are not supported yet).

from unitynativeshare.

yasirkula avatar yasirkula commented on August 24, 2024

This example code uses Uri.parse instead of a ContentProvider; could you see if Uri.parse works on Quest 2: http://www.daniel4d.com/blog/sharing-image-unity-android. You'll need to replace the file path with your own file path and "image/jpeg" mimetype with your file's mimetype.

from unitynativeshare.

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.