amplitude / amplitude/experiment-react-native-client

Issue after updating to v1.1.0

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.