Skip to content

Fix getting Android push token on startup. #4573

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

Merged
merged 6 commits into from
Mar 30, 2021

Conversation

chrisbobbe
Copy link
Contributor

There are further, more involved improvements we'd like to make, but this should fix an important bug amplified in v27.158 where Android hasn't been registering for push notifications. See discussion around https://chat.zulip.org/#narrow/stream/48-mobile/topic/.60remoteNotificationsRegistered.60.20listener.20too.20late/near/1147378.

I've also included a tweak to comments in initNotifications that I expect are orthogonal to the fix.

This avoids a race where we check, there's nothing (or something
out of date), then it changes just a moment before we get around
to subscribing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants