Closed worstkiller closed 1 year ago
Hi @worstkiller . Is this the first app version you released with version 4.0.0 of our SDK? Or did some other change coincide with these logs appearing?
Hi @worstkiller . Is this the first app version you released with version 4.0.0 of our SDK? Or did some other change coincide with these logs appearing?
the first time we saw this issue was in 3.2.2 a few months back in January I guess. this is not our first release, later I updated sdk from 3.2.2 to 4.0.0 see if this is fixed. Also to add more this issue is not a fatal issue but we are worried if the client is working properly internally otherwise it won't be able to load new remote values and many parts won't work properly.
Thank you for the info. We will take a look, try to come up with some theories and get back to you within the next week.
Hi again @worstkiller, I just spent a bit reviewing the behavior of 3.2.2 and the changes made between 3.2.2 and 4.0.0.
The connectivity mechanisms were significantly overhauled in version 4.0.0 and so this issue won't affect 4.0.0
To address your original concern, in 3.2.2 - That error is logged if we get a connectivity update from the OS and LDClient.init(...) hadn't been called yet. This can happen during app launch/resumption from long background if the OS's connectivity state changes ( "android.net.conn.CONNECTIVITY_CHANGE"
). Think race condition. Ultimately, once LDCLient.init(...) is called, the connectivity monitoring system is set up with the correct state and everything will be good from there on.
From my investigation, this should not be resulting in any issues for your customers. Please let me know if you have evidence that indicates the LDClient isn't able to provide feature flag evaluations when this error is occurring and the customer has internet at least once to synchronize the feature flag rules.
Describe the bug This issue is not happening on the development devices so won't be able to add how and when it gets reproduced. but from logs it seems this is happening
To reproduce Not able to reproduce on staging environment or device.
Expected behavior SDK should be able to initialize the client properly and load the remote values properly. currently we can see from stack track that sometimes its failing to load the client properly.
Logs
Tried to update LDClients with network connectivity status, but LDClient has not yet been initialized.
SDK version 4.0.0
Language version, developer tools kotlin 1.8.0, (Android Studio Flamingo | 2022.2.1 RC 1),
OS/platform Android Version:12, SM-S134DL Model:SM-S134DL,
Additional context
We have updated to 4.0.0 but we are using initializing this way, here some code snippets
then passing LDUser instance below
This issue has occurred 17k times in last 30 days, so it's causing issues in our users devices and they might not be working properly. Kindly look into this when you get chance.
Thanks a lot