# Alternative for deauthenticate() and setPushToken in AuthenticateParams - Android Calls SDK

**URL:** <https://community.sendbird.com/t/alternative-for-deauthenticate-and-setpushtoken-in-authenticateparams-android-calls-sdk/4144>\
**Category:** Sendbird Voice/Video Calls\
**Tags:** sendbird-call\
**Created:** [March 10, 2022, 2:34pm UTC](https://community.sendbird.com/t/alternative-for-deauthenticate-and-setpushtoken-in-authenticateparams-android-calls-sdk/4144 "2022-03-10T14:34:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Android\_MR\_Firebase](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/android_mr_firebase/32/2076_2.png) [@Android\_MR\_Firebase](https://community.sendbird.com/u/Android_MR_Firebase)\
**Post date:** [March 10, 2022, 2:34pm UTC](https://community.sendbird.com/t/alternative-for-deauthenticate-and-setpushtoken-in-authenticateparams-android-calls-sdk/4144/1 "2022-03-10T14:34:46Z")

</div>

Hi,

Acc to Sendbird Calls documentation for Android SDK, we need to add setPushToken in AuthenticateParams while authenticating a user.  
ref link - [Authentication | Calls Android SDK | Sendbird Docs](https://sendbird.com/docs/calls/v1/android/guides/authentication)

But after Android SDK 1.6.0, this param was deprecated and doesn’t work in latest 1.9.0 version of SDK.

Similarly, for deauthenticating the user, SendBirdCall.deauthenticate() is mentioned in the documentation but this method was also deprecated in 1.6.0

Can someone help me with the alternative for both these to be used.

Thanks

---

<div class="post-metadata">

**Author:** ![Nathan.Park](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/nathan.park/32/316_2.png) [@Nathan.Park](https://community.sendbird.com/u/Nathan.Park)\
**Post date:** [March 11, 2022, 2:52am UTC](https://community.sendbird.com/t/alternative-for-deauthenticate-and-setpushtoken-in-authenticateparams-android-calls-sdk/4144/2 "2022-03-11T02:52:00Z")

</div>

Hi @Android_MR_Firebase,

You can use `SendBirdCall.registerPushToken()` instead. Please refer to this [docs](https://sendbird.com/docs/calls/v1/android/guides/notifications#2-push-notifications-for-fcm-3-step-4-register-a-registration-token-to-sendbird-server). Also, there is `SendBirdCall.unregisterPushToken` for deauthentication. Call this function before authentication.

Thanks.

---

<div class="post-metadata">

**Author:** ![Android\_MR\_Firebase](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/android_mr_firebase/32/2076_2.png) [@Android\_MR\_Firebase](https://community.sendbird.com/u/Android_MR_Firebase)\
**Post date:** [March 11, 2022, 1:26pm UTC](https://community.sendbird.com/t/alternative-for-deauthenticate-and-setpushtoken-in-authenticateparams-android-calls-sdk/4144/3 "2022-03-11T13:26:57Z")

</div>

Thanks for the reply @Nathan.Park . The issue I am facing now is that my token are not removed from Sendbird account by using SendBirdCall.unregisterPushToken() method and call still comes even if I logged out from app.

Another issue I am facing in Android 12 version is that when my phone is locked and I pick call then video of caller is not coming sending dropbox link of video of the same issue.

[https://dl.dropboxusercontent.com/s/6485d3shb3k3jho/Screenrecorder-2022-03-11-18-45-28-114.mp4?dl=0](https://dl.dropboxusercontent.com/s/6485d3shb3k3jho/Screenrecorder-2022-03-11-18-45-28-114.mp4?dl=0)

---

<div class="post-metadata">

**Author:** ![Android\_MR\_Firebase](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/android_mr_firebase/32/2076_2.png) [@Android\_MR\_Firebase](https://community.sendbird.com/u/Android_MR_Firebase)\
**Post date:** [March 15, 2022, 6:36am UTC](https://community.sendbird.com/t/alternative-for-deauthenticate-and-setpushtoken-in-authenticateparams-android-calls-sdk/4144/4 "2022-03-15T06:36:17Z")

</div>

Hi @Nathan.Park  
Any update on my last message?  
Happy to provide any further information needed to solve this issue.
