-
Notifications
You must be signed in to change notification settings - Fork 18
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
on(event:runInBackground:execute:) Never Executes #541
Comments
I'm having the exact same issue. Environment
|
Hi @vincentesm and @jsahoo, |
I am also experiencing this issue on the latest version 2.25.1 |
Any update on this? |
Hi, |
This particular comment hinted at a solution: #512 (comment) So, the TL;DR is that if you don't have a strong reference to |
As @alexfu wrote, one needs to keep reference to the factory as well as the client. This is IMHO very strange API design and is not documented. |
Hello,
I am facing an issue similar to the one described in SDK Ready Not Firing #512 where the
on(event:runInBackground:execute:)
method does not return with the.sdkReady
event when the SDK is initialized.I am noticing that the
clientManager
isnil
in theDefaultSplitClient
when theon(event:runInBackground:execute:)
is called. DefaultSplitClient.swift Line 80.On a brief look into the cause, the method does call back if I remove the
weak
reference fromclientManager
in the same file. DefaultSplitClient.swift Line 25. I realize this may not be the fix, but I hope that it is helpful in debugging.Please let me know if I can provide any other details. Thank you.
Environment
The text was updated successfully, but these errors were encountered: