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 還沒有評估資料。