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

MLIBZ-2732: Fix multiple messages being received when PubNub is reconnected #389

Merged
merged 1 commit into from Feb 12, 2019

Conversation

@thomasconner
Copy link
Contributor

commented Feb 11, 2019

Description

NativeScript apps are often put in the background or experiencing a loss of network connectivity for a short time period. These states will cause the PubNub client to disconnect. To fix this issue we attempt to reconnect the PubNub client when the app is resumed or network connectivity, However, this also caused a problem where messages would begin doubling or even tripling. To fix this issue we have added the dedupeOnSubscribe flag to the PubNub client config.

Changes

  • Added dedupeOnSubscribe flag to PubNub client config.

@thomasconner thomasconner self-assigned this Feb 11, 2019

@thomasconner thomasconner requested a review from vinaygahlawat Feb 11, 2019

@thomasconner thomasconner merged commit df90c19 into master Feb 12, 2019

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@thomasconner thomasconner deleted the MLIBZ-2732 branch Feb 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.