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

WiP: call failureBlock during setExternalUserId if one or more channels return success of false #1009

Closed

Conversation

nan-li
Copy link
Contributor

@nan-li nan-li commented Oct 1, 2021

  • we were always calling the successBlock after making the request to set external user ID
  • which means we call the successBlock even when the backend doesn't set it and return the error of invalid auth hath
  • now we check if the result has any channels that returned "success" of false and call the failureBlock
  • (to remove later) I made some comments in the code about what to do for certain things

This change is Reviewable

…cessful

- we were always calling the `successBlock` after making the request to set external user ID
- now we check if the result has any channels that returned "success" of false and call the `failureBlock`
@nan-li nan-li force-pushed the fix/setExternalUserId-with-wrong-success-callback branch from 1966d25 to d6c2747 Compare October 1, 2021 20:10
@nan-li nan-li requested a review from emawby October 1, 2021 20:13
Copy link
Contributor

@emawby emawby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @emawby and @nan-li)


iOS_SDK/OneSignalSDK/Source/OSStateSynchronizer.m, line 205 at r1 (raw file):

    [OneSignalClient.sharedClient executeSimultaneousRequests:requests withCompletion:^(NSDictionary<NSString *,NSDictionary *> *results) {
        var requestDidFail = false;

I would like us to start typing variables in objective-c and avoiding using var!

@nan-li nan-li closed this Sep 20, 2023
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.

2 participants