Writing files to Vision Pro user folders from app

Hi,

Newbie Apple dev here. I am used to Android devices environment, hence we have an app that creates config files in local app folder, files we can access by the file browser when needed.

I understand that there will never be such possibility (to access app folder from a browser) on VisionOS, so I tried to make the app save the files (.json) to an accessible folder (downloads, documents, whatever.)

Thing is I have zero idea on how to do this on VisionOS, and can’t find any doc. Can a kind Apple-lover soul direct me to some documentation or explain how to do this using a Unity app ? Thanks.

This came up before here, although that uses some Objective-C code. There’s another thread here discussing how to do it on iOS (again recommending a native plugin). More often than not, solutions for iOS will work for visionOS as well.

1 Like