Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configureWithAppId does not refresh config in all scenarios #730

Open
emdobrin opened this issue Jan 7, 2025 · 0 comments
Open

configureWithAppId does not refresh config in all scenarios #730

emdobrin opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@emdobrin
Copy link
Contributor

emdobrin commented Jan 7, 2025

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

@emdobrin emdobrin added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant