amplitude / amplitude/experiment-react-native-client

Issue after updating to v1.1.0

Aberta
#24 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
8
Forks
6
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.