Comments (5)
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.
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.
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.
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.
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)
- Using a callback changes the look of the sharing window HOT 1
- Sharing Image to Facebook (iOS) does not share the image just the text and link HOT 9
- Error with sharing HOT 13
- Request for feature
- Crash with Unity as a library on Android 11 HOT 1
- Posting image+text on Instagram HOT 3
- Not possible to share image from Android Instant app HOT 3
- Android Build Failure: - Duplicate Class com.yasirkula.unity.NativeShare HOT 1
- Image not sharing with iOS app HOT 2
- Apps not showing on android 11 with 1.4.9 HOT 5
- Problem with sharing "No apps can perform this action" HOT 7
- NativeShare.Share() throwing exception on Android prod builds only (Unity NativeShare not doing anything on Android prod builds) HOT 7
- ios permission denied when using persistentPath for Sharing VideoFile HOT 2
- share file to slack in ios HOT 2
- SDK 31 above requires FLAG_IMMUTABLE or FLAG_MUTABLE PendingIntent. HOT 6
- Can't share image (without text) in Instagram with iOS 16.2 or older HOT 4
- Image is not getting shared when shared with Text on some platforms HOT 1
- Can't share to Instagram (except Reel) in iOS 16.3.1 HOT 1
- iOS Share video and text at the same time to iMessage HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unitynativeshare.