amplitude / amplitude/experiment-react-native-client
Issue after updating to v1.1.0
- 主要语言
- TypeScript
- 星标
- 8
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
描述
When updating the experiments SDK from 1.0.0 to 1.1.0, the following error is observed:
``` ERROR Timed out waiting for Amplitude Analytics SDK to initialize. You must ensure that the analytics SDK is initialized prior to calling fetch().```
Note that this is using the SDK along with `@amplitude/react-native@2.17.0`
Initialisation code:
```
amplitude = Amplitude.getInstance();
await amplitude.setServerUrl(AMPLITUDE_PROXY);
await amplitude.init(AMPLITUDE_KEY);
// Amplitude Experiments
experiments = Experiment.initializeWithAmplitudeAnalytics(
AMPLITUDE_EXPERIMENT_KEY,
{
automaticExposureTracking: false,
serverUrl: EXPERIMENTS_PROXY,
},
);
```
Reverting back to version 1.0.0 makes the error go away.
Thanks in advance.
贡献指南
评估
这个 Issue 还没有评估数据。