Skip to content

Update Lifecycle direct extension's configuraiton keys to include the data type required #797

@timkimadobe

Description

@timkimadobe

Is there an existing issue for this?

  • I have searched the existing issues

What's missing?

Current docs don't explain that the data type should be an int:
https://developer.adobe.com/client-sdks/home/base/mobile-core/lifecycle/configuration-keys/

and since a lot of config keys are strings, and the casting failure is silent, it's not obvious what value is being used:

private func getSessionTimeoutLength(configurationSharedState: [String: Any]?) -> TimeInterval {
        guard let sessionTimeoutInt = configurationSharedState?[LifecycleConstants.EventDataKeys.CONFIG_SESSION_TIMEOUT] as? Int else {
            return TimeInterval(LifecycleConstants.DEFAULT_LIFECYCLE_TIMEOUT)
        }

        return TimeInterval(sessionTimeoutInt)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions