Skip to content

Bug with Braze plugin #610

@henrymoulton

Description

@henrymoulton
  • analytics-react-native version: "@segment/analytics-react-native": "2.3.2",
  • Integrations versions (if used): "@segment/analytics-react-native-plugin-braze": "^0.2.2",
  • React Native version: "react-native": "0.66.4",
  • iOS or Android or both? iOS

We setup our Segment client with the Braze plugin:

export const segmentClient = createClient({
  writeKey: apiKey,
  trackAppLifecycleEvents: true,
});

segmentClient.add({ plugin: new BrazePlugin() });

However when calling await segmentClient.identify(userId, traits); this doesn't identify the user with Braze and the user doesn't receive push notifications on iOS.

To workaround this we add a call using the react-native-appboy-sdk: ReactAppboy.changeUser(profile?.userId);.

Steps to reproduce

Setup app with Segment and Braze plugin.

Expected behavior

segmentClient.identify should identify a user's device in Braze enabling them to be sent a push notification.

Actual behavior

Doesn't work on iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TriagedTriaged in JIRAbugBug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions