amplitude / amplitude/Amplitude-TypeScript

[bug] saveEvents option missing for amplitude init function

Open
#180 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
180
Forks
68
Avg merge
3d 1h
Merged PRs (30d)
29

Description

According to https://github.com/amplitude/Amplitude-TypeScript/commit/6fde736ca8a865462522082a8085673756dbcc7d **saveEvents** option is missing so there is no way to save events if user loses internet connection.
As well **saveEvents** option not works in previous versions of sdk

## Expected Behavior
**saveEvents** option back and work properly

## Current Behavior
missing **saveEvent** option and have no opportunity to track events with "lack of internet areas" like subway

## Steps to Reproduce
1. Install SDK
2. Mock "no internet connection" in Chrome DevTools
3. Track some events
4. Revert mock
5. Track some event(Also I tried to flush and have same result). Only 1 event sent

## Environment
- TS SDK Version: 0.5.1 and 1.1.2
- Installation Method: npm
- Browser and Version: Chrome Version 104.0.5112.79 (Official Build) (arm64)

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.