brief-honey-45610
09/21/2023, 4:02 AMbrief-honey-45610
09/21/2023, 4:02 AMbrief-honey-45610
01/24/2024, 4:48 PMI’m attempting to add the GrowthBook.dll into a Unity/C# project we have, it successfully builds in the Unity editor, however on Android builds it runs into problems.
I’ve imported GrowthBook.dll in Assets/Plugins
I reference the GrowthBook namespace and am able to access the types and classes in the GrowthBook.dll in the Unity editor, however as soon as it’s on a device it no longer works, is this dll compatible with Android/iOS?
Do you have any other customers who’ve attempted something similar?
https://www.nuget.org/packages/growthbook-c-sharp/0.2.0
adventurous-traffic-38037
02/21/2024, 3:06 PMGetFeatureValue
method in GrowthBook when testing with C# in LINQPad. Executing the command ``gb.GetFeatureValue("test", default(bool?)).Dump();`` yields different outcomes depending on the default feature value. Specifically, if the feature's default is set to true, the result is as expected: true. However, when the default is set to false, the result is unexpectedly null, which seems illogical, especially since the production environment is active. Adding to the confusion, the response from the request indicates the default value as null, which contradicts the expected behavior. Here's the response snippet for clarity: ``{"status":200,"features":{"test":{"defaultValue":false},"gbdemo-checkout-layout":{"defaultValue":"current","rules":[{"condition":{"is_employee":true},"force":"dev"},{"coverage":1,"seed":"gbdemo-checkout-layout","hashVersion":2,"variations":["current","dev-compact","dev"],"weights":[0.3334,0.3333,0.3333],"key":"gbdemo-checkout-layout","meta":[{"key":"0","name":"Current"},{"key":"1","name":"Dev-Compact"},{"key":"2","name":"Dev"}],"phase":"0","name":"gbdemo-checkout-layout"}]}},"dateUpdated":"2024-02-21T145528.321Z"}``. This discrepancy is baffling and I'm looking for insights or explanations.modern-winter-76959
02/22/2024, 9:19 AMmodern-winter-76959
02/22/2024, 9:20 AMmodern-winter-76959
02/22/2024, 9:22 AMmodern-winter-76959
02/22/2024, 9:24 AMfresh-football-47124
bulky-jackal-91808
06/11/2024, 1:11 PM<package id="growthbook-c-sharp" version="1.0.5" targetFramework="net48" />
. However, I am encountering an error stating that the relevant method cannot be found. Can you please help me resolve this issue?silly-processor-16350
06/25/2024, 2:40 AMgray-keyboard-18541
09/09/2024, 11:34 AMtrue
even though I set it to false
.
I create a Singleton instance that I make available to DI:
var context = new GrowthBook.Context
{
Enabled = true,
ClientKey = "sdk-...",
LoggerFactory = loggerFactory
};
_gb = new GrowthBook.GrowthBook(context);
_gb.LoadFeatures();
These are the logs indicating that it received the feature change.
info: GrowthBook.Api.FeatureRefreshWorker[0]
API response JSON contained no encrypted features, returning '1' unencrypted features
info: GrowthBook.Api.FeatureRefreshWorker[0]
Cache has been refreshed with server sent event features
info: GrowthBook.Api.FeatureRefreshWorker[0]
Making an HTTP request to server sent events endpoint '<https://cdn.growthbook.io/sub/sdk-...>'
info: GrowthBook.Api.FeatureRefreshWorker[0]
API response JSON contained no encrypted features, returning '1' unencrypted features
info: GrowthBook.Api.FeatureRefreshWorker[0]
Cache has been refreshed with server sent event features
This is how I evaluate the flag on the GrowthBook instance injected via DI:
_gb.Attributes["workspaceId"] = workspaceId.ToString();
return _gb.IsOn(key);
As I said, the value of the flag only changes after I restart the service.flaky-noon-11399
09/09/2024, 8:16 AMfreezing-postman-69602
09/12/2024, 7:30 PMlimited-businessperson-27008
06/03/2025, 5:27 PMlimited-businessperson-27008
06/09/2025, 3:01 PM