Skip to content

configureWithAppId does not refresh config in all scenarios (MOB-23309) #730

@emdobrin

Description

@emdobrin

Expected Behaviour

If I need to test with two app ids in the same session, I should be able to switch between the two multiple times within that same session.

e.g.
MobileCore.configureWithAppId(appId1) -> set appId1
MobileCore.configureWithAppId(appId2) -> set appId2
MobileCore.configureWithAppId(appId1) -> set appId1

Actual Behaviour

MobileCore.configureWithAppId(appId1) -> set appId1
MobileCore.configureWithAppId(appId2) -> set appId2
MobileCore.configureWithAppId(appId1) -> still appId2

Reproduce Scenario (including but not limited to)

Issue seems to be caused by this config expiry check which caches the first appId1 set date and does not account for this scenario.

You might also need to consider clearing the expiry cache on configureWithAppId(null / "")

Steps to Reproduce

Platform and Version

Android, Core/Config v3.2.0

Sample Code that illustrates the problem

Logs taken while reproducing problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions