You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//some logics for creating anonymous users (haven't logged in)
const deviceId = DeviceInfo.getUniqueId();
run: Braze.changeUser(anonymous_${deviceId})
//set attributes of an anonymous user to Braze (both standard and custom attributes)
//login first account, calling apis to get the UserId_1
run: Braze.changeUser(UserId_1)
//set attributes of an User to Braze (both standard and custom attributes)
//Logout logic
const anonymousId = AsyncStorage.getItem('anonymous_id') //get back the anonymous user id from storage
//switch back to anonymous users and run: Braze.changeUser(anonymousId)
//set attributes of an anonymous user to Braze (both standard and custom attributes)
//Login with second account, calling apis to get the UserId_2
run: Braze.changeUser(UserId_2)
Creating test push notification, sending to the changed user
Expected Behavior
Receive the test push notification (correspoding with the current user that is logging in)
Seeing error message: "No matching token..." when trying to push the notification to UserIds not being used
Actual Incorrect Behavior
NOT receive the test push notification for the that is logging in.
Receive test push notification of OTHER user
Verbose Logs
No response
Additional Information
I have tried to debug this bug, even try to log the current userId from Braze (with Braze.getUserId) after each switching phase. The userId return is correct (receive correct logged in user Id and correct anonymous user id)
I also monitor the payload has been sent to Braze via sdk, and the user id sent to Braze is correct too
Until now, this bug only appears on IOS actual devices, after me switching the user many times
The text was updated successfully, but these errors were encountered:
At times, it may take a little bit for APNs to send a push notification that is received on a device. It may help to try again after some time if you feel that the notifications take a long time to be received by the device
Add a link to this Github issue for reference
The Braze Support team should help with trying to reproduce this issue to diagnose the root cause.
Which Platforms?
iOS
Which React Native Version?
0.73.5
Which @braze/react-native-sdk SDK version?
9.0.0
Repro Rate
Really hight, especially after switching users
Steps To Reproduce
Example:
Braze.changeUser(
anonymous_${deviceId})
Braze.changeUser(UserId_1)
Braze.changeUser(UserId_2)
Expected Behavior
Actual Incorrect Behavior
Verbose Logs
No response
Additional Information
The text was updated successfully, but these errors were encountered: