-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Hi @jackbrookes ,
I noticed that in UXF 2.0 documentation, it is noted in the compatibility page that file saver does not work for Android or standalone HMD (i.e., Oculus Quest, which also uses Android) and that a HTTP Post option is needed.
But from what I understand, I can't test right now because I don't have a Quest with me, is that it is possible to locally save the csv files. These files would just need to be accessed by connecting the device to a computer and manually copying those files over to the computer.
It seems that as long as the function to save the csv file is using "Application.persistentDataPath", then it should work and save to "/storage/emulated/0/Android/data//files"- https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html
There may be some write permissions to set though (Unity Editor Menu -> Edit -> Project Settings -> Player -> Write Permission) - https://forum.unity.com/threads/writing-files-to-oculus-quest.1076615/
You may have to play around with these options (Internal and External write) to see what works, but it looks like in both cases, Android mobile device and standalone HMD, it will work to save these files to the device. This can remove the need to setup and use the HTTP Post option, if you do not want to/can't use the HTTP option (i.e., you are running a study where there is no internet access available).
Have you tried this out before?