Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS null callback fix for setExternalUserId #1141

Merged
merged 2 commits into from
Jan 11, 2021
Merged

Conversation

rgomezp
Copy link
Contributor

@rgomezp rgomezp commented Jan 11, 2021

Motivation: we want to make sure that the setExternalUserId works for iOS even if no callback is passed. Thus, we are re-adding the default callback but for iOS only.

Note: for Android we want it to be nullable temporarily as a workaround for the current issue of the same callback firing multiple times (crashes) due to the onSuccess triggering once per channel.

Note: in the future, we intend to make argument non-nullability or nullability consistent across both platforms.

Motivation: we want to make sure that the `setExternalUserId` works for iOS even if no callback is passed. Thus, we are re-adding the default callback but for iOS only. 

Note: for Android we want it to be nullable temporarily as a workaround for the current issue of the same callback firing multiple times (crashes) due to the `onSuccess` triggering once per channel.

Note: in the future, we intend to make argument non-nullability or nullability consistent across both platforms.
Includes patch for `setExternalUserId` iOS null callback crash
@rgomezp rgomezp requested a review from jkasten2 January 11, 2021 21:38
@rgomezp rgomezp merged commit 7bf6cfa into master Jan 11, 2021
@rgomezp rgomezp deleted the null-callback-fix branch January 11, 2021 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants