Apps come with pre-built resources such as Images, Audio Files, Configuration Files, and Layout Files, etc. You can sync your app's resources as well as your files and assets using File Variables, which allow you to define individual files, assets, or resources as Leanplum variables using our SDK. If you have many resources, you can improve performance by reducing the set of synced resources to just those that you'll need to swap out.
Like other variables, File Variables will show up on the Variables tab of the dashboard. See article on adding variables for more information. In order to sync files/resources, you’ll need to define each of the files/resources in your app's code above the Leanplum.start call using
Var.defineResource(). See our docs for specific integration information on how to do this. It's under Data Modeling > Asset in iOS and Android.
To sync these files, you'll need to run the SDK on a debug build (requires a developer).
This gives you the ability to take, say, an image, and swap it out with another image already in your app, or you can even upload a brand new image from you local computer to go out to your users. This is all handled by our lightweight content management system.
You can also manually add custom variables. The supported variable types are float, boolean, string, image, etc. More information on how to define custom variables can be found in our documentation for both iOS and Android.