Skip to content

analytics-react-native-plugin-adjust not compatible with react-native-adjust v5 #1036

@kathaypacific

Description

@kathaypacific

Hello! This is both a bug report and feature request to support react-native-adjust v5, which was released about 3 months ago. It seems that the latest version of @segment/analytics-react-native-plugin-adjust (v0.7.0) is not compatible with the api changes that were made in react-native-adjust v5, causing the Segment client to fail to initialise altogether.

  • analytics-react-native version: 2.20.3
  • Integrations versions (if used):
  • React Native version: 0.72.15
  • iOS or Android or both? both

Steps to reproduce

  1. run yarn add @segment/analytics-react-native-plugin-adjust react-native-adjust as in the segment installation instructions
  2. try to run your app after executing the rest of the segment installation instructions

Expected behavior
No errors

Actual behavior
The segment client fails to initialise with the error

'An internal error occurred: ', { [Error: Client did not initialize correctly]
  type: 8,
  innerError: [TypeError: adjustConfig.setAttributionCallbackListener is not a function (it is undefined)] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions