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

Fixed app not sending notification key on login #203

Conversation

Sebastian-Webster
Copy link
Member

The old temp/sendnotificationkey API would store the notification key in the User document and the key would permanently stay there. The updated temp/sendnotificationkey API now stores the notification key in a RefreshToken document so when a device gets logged out, that device no longer gets any notifications from the account. Previously, SocialSquare would not resend the notification key after getting logged back in as the app already had it saved in AsyncStorage so it assumed it did not have to re-uplaod the key. Now whenever the user gets logged out, the notification key is deleted from AsyncStorage and the key is re-uploaded to the server on the next account login.

@Sebastian-Webster Sebastian-Webster added the bug Something isn't working label Sep 20, 2023
@Sebastian-Webster Sebastian-Webster added this to the Before Release milestone Sep 20, 2023
@Sebastian-Webster Sebastian-Webster self-assigned this Sep 20, 2023
@Sebastian-Webster Sebastian-Webster merged commit 4c75219 into main Sep 20, 2023
2 checks passed
@Sebastian-Webster Sebastian-Webster deleted the 197-app-doesnt-resend-notification-key-if-it-has-been-sent-before branch September 20, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App doesn't resend notification key if it has been sent before
1 participant