amplitude / amplitude/experiment-react-native-client

Issue after updating to v1.1.0

未关闭
#24 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。