Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave PubNubPresenceChangeAction called when user goes to background. #156

Open
rabinpun opened this issue Mar 3, 2024 · 1 comment
Open

Comments

@rabinpun
Copy link

rabinpun commented Mar 3, 2024

After subscribing a channel, when my device goes on background after few seconds(within 5 seconds), i get Leave presence change action for that user which is not an expected output.

@rabinpun rabinpun changed the title Leave PubNubPresenceChangeAction called when user goes to background. Bug: Leave PubNubPresenceChangeAction called when user goes to background. Mar 3, 2024
@rabinpun rabinpun changed the title Bug: Leave PubNubPresenceChangeAction called when user goes to background. Leave PubNubPresenceChangeAction called when user goes to background. Mar 3, 2024
@jguz-pubnub
Copy link
Contributor

Hi @rabinpun, this is because the Generate Leave on TCP FIN or RST checkmark is selected in your keyset configuration in the Admin Portal. However, this won't solve the issue you mentioned regarding the next heartbeat calls not being repeated in the background. Please note that handling background states is the responsibility of your application and not the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants