Open martin-mentormate opened 2 months ago
@martin-mentormate Could you send in some verbose logs to support@braze.com to confirm if there are any issues with the request behavior? It sounds like expected behavior since the SDK was able to receive a valid auth error from the server.
Which Platforms?
Android
Which React Native Version?
0.73.4
Which @braze/react-native-sdk SDK version?
11.0.0
Repro Rate
50%
Steps To Reproduce
Example:
brazeToken
import Braze from "@braze/react-native-sdk"
.Braze.enableSDK()
Braze.addListener(Braze.Events.SDK_AUTHENTICATION_ERROR, authFailure => console.log(authFailure))
Braze.changeUser(id, brazeToken)
Braze.setSdkAuthenticationSignature(brazeToken)
Braze.requestContentCardsRefresh()
brazeToken
expires, braze error 22 is thrownExpected Behavior
The Braze SDK doesn't log errors when the user is inactive.
Actual Incorrect Behavior
The Braze SDK detects when the token expires and logs errors even if we have already received all campaigns, have loaded the all content cards and user is inactive.
Verbose Logs
No response
Additional Information
This issue started to appear after we migrated 8.0.0 -> 9.2.0. Later we migrated to 11.0.0 (currently latest), but we are still experiencing the same errors. There are no breaking changes mentioned for Android in the change log - https://www.braze.com/docs/developer_guide/platform_integration_guides/react_native/changelog. It is also important to point out that we are not receiving errors on iOS.