-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature Value fails in multiprocess environment #103
Comments
sample initialization code:
|
Hello @sameerjj ! |
Try to use |
Yes null pointer exception - the features don’t exist in that process (my
guess would be the cache is in the memory of the other process but still
marked as “saved “)
The value is null so casting to optional doesn’t really solve the issue as
the feature definitely exists and works in the main app
Le mer. 8 mai 2024 à 14:40, Bohdan Kim ***@***.***> a écrit :
… Try to use
gb.feature("baseurl").value as String?
instead of
gb.feature("baseurl").value as String
—
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVZP6KHJP73LTENSIBOF6LZBJWSZAVCNFSM6AAAAABHMA5DB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRGIYDIOJYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@sameerjj It is not safe to cast. |
Hi @Bohdan-Kim, is there a way to know when the initialization is complete? |
btw, I induced a delay of 1 second between |
The issue is hard to reproduce. |
|
We tried just to wrap the code with |
It seems like we reproduced the issue. |
This foreground service works fine for us: |
Hi @Bohdan-Kim, you would have to add to your manifest that it's a separate process as I mentioned
|
We followed your instruction and noticed that when |
The pull request was created according to this issue.
where |
We released v1.1.58 version of the SDK. The changes from pull request are available in v1.1.58 |
I have a ForegroundService which requires a feature flag, I declare it to have a separate process in the manifest:
android:process=":location"
when I call
gb.feature("baseurl").value as String
it fails, despite it working in the main process.
The text was updated successfully, but these errors were encountered: