segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
367 stars 191 forks source link

fix: startup flush policy should send restored events #943

Closed oscb closed 7 months ago

oscb commented 7 months ago

Problem reported that StartupFlushPolicy wouldn't send the pending upload events from the previous app launch.

Caused by concurrency: FlushPolicies get initialized before and without awaiting for storage restoration. Futhermore the Queue for upload is managed by the SegmentDestination plugin so there's no explicit way to await for that queue to be restored from the base client itself.

Solution:

bsneed commented 3 months ago

:tada: This PR is included in version 1.2.1 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

bsneed commented 3 months ago

:tada: This PR is included in version 0.4.2 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

alanjcharles commented 1 month ago

:tada: This PR is included in version 1.3.2 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: