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.
analytics-react-nativeversion:"@segment/analytics-react-native": "2.3.2","@segment/analytics-react-native-plugin-braze": "^0.2.2","react-native": "0.66.4",We setup our Segment client with the Braze plugin:
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.identifyshould identify a user's device in Braze enabling them to be sent a push notification.Actual behavior
Doesn't work on iOS.