Start a new topic

Cannot load AR View from a local file

Cannot load AR View from a local file


I'm integrating caching into my application (phonegap) and am having trouble using world files residing in directories outside of the app bundle. This applies to both the Library and Cache directories. 

Here is the error I receive upon load : "Loading AR web view failed: Unable to determine the url to load: file:///var/mobile/Containers/Data/Application/<uuid>/tmp/<id>.html"

 

These also fail - 

/var/mobile/Containers/Data/Application/<uuid>/tmp/<id>.html
file:///var/mobile/Containers/Data/Application/<uuid>/Library/Caches/<id>.html

This appears to be a similar problem to https://support.wikitude.com/support/search/topics?term=ArchitectView.load+-+unable+to+use+file+system

Can you tell me if my filepaths are in the correct format? Can the loadARchitectWorld even access files outside of the app bundle? What are my options for caching assets (3d drawables, in this case)?

Thank you Andreas! I've updated the SDK and am now able to use the cache directory. I'll subscribe to the wikitude-cordova-plugin-samples repository to better keep an eye on updates.

Regards,
Devin

Hi Devin,
With our latest Cordova plugin release, we added support for the Cordova File API. With that you should be able to load an Architect World from the Library or Caches directory.

Please refer to our example application for more detail on how to use the Cordova File API in combination with our SDK.

Best regards,

Andreas

Nice! It's always good to read that updates fix problems :)
Login or Signup to post a comment