CometChat.logout()
method. That is, once the user is logged out of the current CometChat session, his/her registered Push Notification token automatically gets deleted.
The same can be achieved explicitly by making a call to the extension using callExtension
method as shown below. However, the token that is deleted belongs to the current session of the end-user by passing all=false
as a parameter.
all=true
. This needs to be used with care as the other logins of the current user will stop receiving Push Notifications.