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

Add short delay before presenting push notification dialog #1979

Merged

Conversation

amy-at-kickstarter
Copy link
Contributor

📲 What

Add a 0.5 second delay before presenting our push notification permission dialog.

🤔 Why

When you sign in with OAuth, this permission dialog was showing up only rarely. I dug into the code and found that we were calling everything correctly, but the popup was disappearing, somehow.

My best guess is that something internal is dismissing both the web authentication screen and, since it happens at the same time, the push notification dialog. Adding a short delay before presenting the push notification dialog solves this problem, and doesn't feel any different as a user.

Mar-14-2024.16-01-24.mp4

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review March 14, 2024 20:02
@amy-at-kickstarter amy-at-kickstarter self-assigned this Mar 14, 2024
@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/fix-push-registration-after-oauth-login branch from 689e269 to c75e7fc Compare March 14, 2024 20:50
@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/fix-push-registration-after-oauth-login branch from c75e7fc to 2822e8b Compare March 18, 2024 14:28
@amy-at-kickstarter amy-at-kickstarter merged commit c04f6c2 into main Mar 18, 2024
5 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/fix-push-registration-after-oauth-login branch March 18, 2024 15:14
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

Successfully merging this pull request may close these issues.

None yet

2 participants