Closed tevjef closed 2 months ago
Hi @tevjef , thank you for reporting this issue. Could you elaborate on what you mean by closing one LDClient and initing another? Usually LDClient.identify is used to switch contexts, such as when a user logs in/out.
Hey @tanderson-ld, we are closing one client and opening another to change contexts. I was not aware of the LDIdentify.identify(). I'll try it out in out next release.
Well that's a relief to hear! Identify will also be much more performant. It seems highly likely that if you do switch to just calling identify that will likely resolve the issue.
Do you mind if I close this issue for now to help our team with tracking current issues? You are always more then welcome to reopen it if switching to identify doesn't resolve the issue.
You may close the issue. Thank you.
One strategy we have at our company to reduce startup times is to initialize LaunchDarkly on background thread. Is there a danger in doing so?
@tanderson-ld Accidentally tagged incorrectly. The message above is direct at you. ^
Describe the bug
We occasionally seeing this crash when our Activity pause. In our code if seems to occur when we're in the middle of closing one LDClient and initing another.
SDK version 5.1.1
Language version, developer tools Kotlin 1.9.23 Gradle 8.7 AGP 8.3.2
OS/platform All versions of Android
Additional context Add any other context about the problem here.