I am attempting to build an IOS application using the Wikitude Augmented Reality SDK. Currently, the SDK requires a configuration file to be either included in the binary, or fetched from the network within the context of their own javascript webview-esque framework.
The SDK has no documented way of passing this configuration file from the local app storage to the javascript context. The current implementation involves fetching the configuration file from Parse. This is problematic for the following reasons:
- The configuration needs to be downloaded from the net everytime the context is created (during launch). This is problematic as the configuration can be 10+ megabytes.
- There is no option for persistent storage within the javascript context
- Would not allow for offline use as every launch requires a network connection.
I am looking for advice on workarounds for this issue. I am considering either a custom URL scheme from NSURL Protocol or potentially a local web server on the app, but I am unsure if the javascript context would be able to see any assets linked from the app local storage. Any advice would be super helpful!