Quest 2 support #22
Replies: 2 comments 9 replies
|
Can you try all 4 combinations of the following values in Awake/Start: using( AndroidJavaClass ajc = new AndroidJavaClass( "com.yasirkula.unity.NativeFilePickerPickFragment" ) )
ajc.SetStatic<int>( "pickerMode", 1 ); // 1 or 2
using( AndroidJavaClass ajc = new AndroidJavaClass( "com.yasirkula.unity.NativeFilePicker" ) )
ajc.SetStatic<bool>( "UseDefaultFilePickerApp", true ); // true or falseIf these don't work, then the used Android API might not be supported on VR. I unfortunately couldn't find any related info on the internet so I can't verify it. An alternative would be to use SimpleFileBrowser: https://github.com/yasirkula/UnitySimpleFileBrowser |
|
Hey! I've also been trying to use this plugin for a Meta Quest 2 app. In my case, I'm able to get the read/write permission and when I call the file picker to select a pdf file (like the example provided on the readme file) I am able to select a file through the quest's native android file picker. However, after doing this, it automatically returns to the app and never executes the callback function. OnFilePicked is never called. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have this problem when using the filepicker in an application build for VR (Meta Quest 2), it asks for permissions as it should be but then I am left with a loading spinner. It does log "OnApplicationFocus(false)" and "OnApplicationPause(true)". If I focus the app - by opening it again - I get a "files == null" (cancelled). Is it possible that this is not supported on Quest 2? Anyone who has some experience concerning this topic?
thanks in advance
All reactions