Offline Images In Standalone App


#1

Hello,

Is it possible to store images right in the package so they won’t have to be downloaded from an online repository?

Thank you


#2

At the moment this isn’t supported, but we may try to add it in the future (cc @jesse @ben @skevy).


#3

You can cache assets after downloading them, so this topic mainly applies to the very first run of your app, i.e. you are specifically designing for people to open the app for the first time with no internet.

We do cache your app’s JS bundle and ship it with the standalone app, so it will still run in this circumstance, albeit without assets.

In the short term, one workaround for small images would be to include their base 64 representation directly in your JS. Since the JS is available on first run, that would include images stored in this fashion.