offline data for oculus quest

309
2
09-01-2022 06:44 AM
HacksHaven
New Contributor II

I'm trying to make a Quest VR app that operates offline.  Does anyone have a working sample of reading in data designed to be packaged with the Android APK?  Should I be using the persistentDataPath?  What is the best way of copying the data from it's location in the editor into the final APK?

0 Kudos
2 Replies
Matt_Nelson
Esri Contributor

You will just need to sideload the slpk onto the device or download it from a server on the android phone. You can see something similar here https://developers.arcgis.com/android/offline-maps-scenes-and-data/tutorials/display-a-map-from-a-mo...

0 Kudos
HacksHaven
New Contributor II

FWIW, the Meta App store seems to do things slightly differently.  I had my data in StreamingAssets but that gets compressed in the OBB file and isn't directly accessible to the SDK. UnityWebRequest is be able to correctly access the data, but ESRI is using it's own network library. I'm using https://github.com/gwiazdorrr/BetterStreamingAssets.git to check if the file exists in Application.persistentDataPath and copying it there before accessing the layer.

0 Kudos