analytics-kotlin icon indicating copy to clipboard operation
analytics-kotlin copied to clipboard

Fallback to the defaultSettings if cdn cannot be reached

Open niallzato opened this issue 1 year ago • 0 comments

Fallback to the default Settings if the CDN cannot be reached. If the app is started with no Internet connection, this will result in an empty settings object:

data class Settings(
    var integrations: JsonObject = emptyJsonObject,
    var plan: JsonObject = emptyJsonObject,
    var edgeFunction: JsonObject = emptyJsonObject,
    var middlewareSettings: JsonObject = emptyJsonObject,
    var metrics: JsonObject = emptyJsonObject,
    var consentSettings: JsonObject = emptyJsonObject
) {

niallzato avatar Jun 04 '24 14:06 niallzato