Skip to content

Presence sends leave event for old subscribed channels when subscribing to different new channels #222

@hareshkalyani

Description

@hareshkalyani

Nuget SDK PubnubPCL : 6.19.3

Our app has an online/offline feature, and we subscribe to individual chat when we go inside the chat.

On the opening of the app we subscribe to the self-presence channel userId-presence. so other users can check online/offline status by subscribing to its presence channel userId-presence-pnpres

The presence signal works well, and the HereNow call returns the right Online/Offline status based on subscription.

However when a user goes inside the chat and subscribes to a new channel chatroom1, it leaves presence to the old Presence channel userId-presence

This does not happen every time. If we Subscribe to a channel and Unsubscribe to a channel quickly or multiple times in quick manner it starts to give a leave signal in the presence channel.

Because of that, users seem offline at the other end, which makes the app not function well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions