-
Notifications
You must be signed in to change notification settings - Fork 19
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
SDK Ready Not Firing #512
Comments
Hi @ay8s Regards |
hi @ay8s Regards |
Hi @ay8s Regards, |
Thanks @hbqdev. I did try 2.24.6 but seemed to run into the same issue. Only when reverting to 2.24.4 do I see the expected behavior with my Split checks. Debug logs below:
Aside from those debug logs. Only the SplitEventSdkReadyFromCache event block gets fired. |
Hi @ay8s it Looks like you are holding the local reference of the SDK.
Can you using a global reference for the SDK and see if that fixes the issue? It would be something like this:
Regards, |
@hbqdev We're still using Objective-C to setup Split and have the SplitClient available via a Singleton. Split 2.24.4 still continues to work smoothly. |
We are using also class SplitHelper {
var isSDKReady = false
var client: SplitClient!
func build() {
let config = SplitClientConfig()
config.logLevel = .verbose
let builder = DefaultSplitFactoryBuilder()
let factory = builder.setApiKey(Environment.SPLIT_API_KEY.value)
.setKey(Key(matchingKey: UIDevice.current.identifierForVendor!.uuidString))
.setConfig(config)
.build()
self.client = factory!.client
self.client.on(event: SplitEvent.sdkReady) {
self.isSDKReady = true
}
self.client.on(event: SplitEvent.sdkReadyFromCache) {
self.isSDKReady = true
}
}
} With this logs:
SDk ready event never gets fired |
ios SDK 2.24.7 has been released that addressed this issue. Regards |
Seems to be working smoothly now @hbqdev |
I'm seeing some oddness with the latest update to the SDK where the SDk ready event never gets fired. Initially I thought it may have been down to blocking on my network but also seeing the same issue occur on a device over cellular.
Downgrading to the previous version, the event fires correctly. I saw there was a tweak to loading from cache but would still expect the ready event to fire?
Curious if anyone else has seen similar behavior?
The text was updated successfully, but these errors were encountered: