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

Fix app crashing when receiving multiple push notifications #208

Merged
merged 5 commits into from Nov 10, 2021

Conversation

ben-xD
Copy link
Contributor

@ben-xD ben-xD commented Nov 9, 2021

When the app receives multiple push notifications, a crash occurs. This is because the broadcast receiver is not unregistered. In this fix, I refactor the code slightly, whilst making sure to unregister the receiver.

I also noticed the Rest client did not have a clientId set, so I did that here too instead of creating an entirely new PR.

@ben-xD ben-xD self-assigned this Nov 9, 2021
@ben-xD ben-xD added the bug Something isn't working. It's clear that this does need to be fixed. label Nov 9, 2021
@ben-xD ben-xD changed the base branch from main to feature/symmetric-encryption November 9, 2021 12:56
@github-actions github-actions bot temporarily deployed to staging/pull/208/dartdoc November 9, 2021 12:59 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/208/dartdoc November 9, 2021 13:37 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/208/dartdoc November 9, 2021 14:42 Inactive
Base automatically changed from feature/symmetric-encryption to main November 10, 2021 08:57
@ben-xD ben-xD merged commit 9c9a51c into main Nov 10, 2021
@ben-xD ben-xD deleted the fix/push-back-button-background branch November 10, 2021 08:58
juleshyacinthe pushed a commit to juleshyacinthe/ably-flutter that referenced this pull request Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants