This is a quick post to share a project I created few weeks ago as a proof of concept for a mobile app that can run the Forge Viewer offline. I used React Native as framework to build my app as it can generate native applications easily for both platforms Android and iOS while leveraging React syntax.
Michael was writing an article on the topic a while ago that you can find there: Forge + React Native (AU Talk). The difference is that my project focuses only on the offline aspect.
The next step is to have access to an actual svf package of a Forge model, for that you can refer to my previous article: Forge SVF Extractor in Node.js or here if you prefer a .Net version. You can also upload your model to extract.autodesk.io if you don't want to write any code.
For this simple proof of concept I was manually placing the svf resources in the device storage (in that case the simulator) and didn't implement a download mechanism from Forge which would obviously increase the complexity, but there is no doubt about feasibility of that part... You can find the project at https://github.com/leefsmp/Forge-RNV and it already contains a demo model so you can easily setup React Native on your machine and test it on your end. Below is the React Native implementation of the App:
Here is a quick recording that showcases that demo: what you can see there is that it works in the iOS simulator and on Android, the simulator doesn't support running WebGL, so I am displaying an image instead which is loaded from the static resources served by the local server.