Table of Contents

Class AppUpdateModuleConfig

Namespace
Titipi.MocaLib2

Config for AppUpdateModule. The Remote Config key is platform-specific because the two stores' version lines can diverge; each platform reads only its own key:

// android_app_update_info
{"disabled":false,"min_supported_version":"26.6.1"}

// ios_app_update_info
{"disabled":false,"latest_version":"26.6.4","min_supported_version":"26.6.1","store_url":"https://apps.apple.com/app/idXXXXXXXXX"}

Create both keys by hand once in the Firebase console. latest_version is best kept current by a scheduled job that mirrors the live App Store version into it (recommended — automation can't forget a release), but editing it by hand after each release also works when no job is set up; every other field is hand-written. Android needs no latest_version/store_url — Play In-App Updates answers availability itself.

public class AppUpdateModuleConfig : MocaLib2ModuleConfig
Inheritance
AppUpdateModuleConfig

Fields

Disabled

Runtime kill-switch for the whole update feature, controllable only from Remote Config (hidden from the Inspector, like Enabled — but inverted: this config opts out with {"disabled": true}, so an absent field means "on"). When set, CheckAsync() reports no update of any severity.

LatestVersion
MinSupportedVersion
SoftPromptCooldownDays
StoreUrl

Properties

RemoteConfigKey

The Firebase Remote Config key whose JSON value overrides this config's fields at runtime. Return null or an empty string to opt out of remote overrides — the asset's serialized values are then used verbatim.