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
354 stars 181 forks source link

Amplitude Session plugin doesnt work with Amplitude Classic mode #896

Open Ananthakr-Jupiter opened 7 months ago

Ananthakr-Jupiter commented 7 months ago

Steps to reproduce Connect an Amplitude destination app in classic mode with new 2.x version of this library along with Amplitude session plugin

Expected behavior Session property should be added in each event

Actual behavior Session is not added as the event, hence not reflected in Amplitude dashboard.

Note: The issue is with how the session plugin expects the value of destination to be Actions Amplitude(https://github.com/segmentio/analytics-react-native/blob/b3ff210f9ca66c032bb3303cc2ad2c7d8158f59a/packages/plugins/plugin-amplitudeSession/src/AmplitudeSessionPlugin.tsx) while for classic mode the name of destinations come by default as Amplitude.

The plugin doesn't offer any way to customize this name as well.

alanjcharles commented 1 month ago

Hi @Ananthakr-Jupiter apologies for the delay here. Can you confirm if this is still an issue for you so we can prioritize it accordingly? Thanks!