OneSignal-iOS-SDK icon indicating copy to clipboard operation
OneSignal-iOS-SDK copied to clipboard

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

Open nan-li opened this issue 4 years ago • 0 comments

  • 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

nan-li avatar Oct 01 '21 19:10 nan-li