Kept receiving calls on iOS after logout

ios device keep on receiving call,

But we are calling the method clear the tokens on logout

what we are finding that tokens are not getting clear,

we want help in both android and ios,

Edit*

Issues we are facing is that sendbird is saving multiple tokens.
And when we change login to another device then it keeps the okd device token so that other device is also receiving calls.
We have tried removing those tokens which are previously stored but facing issues in doing so as sometimes it removes token but sometimes its not removing the other token.

Hello! If I understand correctly, what you need is your application to stop receiving calls, correct?

As soon as you have this event active:

SendBirdCall.addDelegate(self, identifier: UNIQUE_HANDLER_ID)
Class MyClass: SendBirdCallDelegate, DirectCallDelegate {
    func didStartRinging(_ call: DirectCall) {
        call.accept()
        call.delegate = self
    }
}

your application will receive calls. Can you apply a logic to this call.accept() part so your application won’t receive the call? Or remove that delegate?

The same happens with Android.

Issues we are facing is that sendbird is saving multiple tokens.
And when we change login to another device then it keeps the okd device token so that other device is also receiving calls.
We have tried removing those tokens which are previously stored but facing issues in doing so as sometimes it removes token but sometimes its not removing the other token.