push-notifications-swift icon indicating copy to clipboard operation
push-notifications-swift copied to clipboard

Completion handler never called in `clearAllState(completion:)`

Open tfe opened this issue 1 year ago • 4 comments

I'm calling clearAllState upon user logging out, as recommended in the docs. I've noticed that the completion handler is not being called, which at least in my current implementation results in the log-out process hanging, since it never continues past the step where I clear all Pusher state.

Is it expected that the clearAllState completion handler will sometimes (or every time in my case) not get called?

If so it would be great to call that out in the documentation so that folks don't get tripped up on this in the future like I did.

tfe avatar Sep 25 '23 19:09 tfe