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

workbox-background-sync doesn't sync when back online #25692

Open
megganeturner opened this issue Sep 29, 2022 · 0 comments
Open

workbox-background-sync doesn't sync when back online #25692

megganeturner opened this issue Sep 29, 2022 · 0 comments

Comments

@megganeturner
Copy link

Description

When using workbox-background-sync, requests are successfully added to the queue, but never replayed when a user comes back online.

Steps to Reproduce

  1. Go to this demo & follow the instructions to make a request offline
  2. When offline, the network request is populated in the queue in Application > Storage > IndexedDB > workbox-background-sync > requests > queueName

Screen Shot 2022-09-29 at 11 16 16 am

  1. When coming back online, the queued network requests are not replayed, and they just sit in the queue indefinitely
  2. You can manually force the queue to sync in the dev tools, but it just doesn't happen automatically

Screen Shot 2022-09-29 at 11 20 23 am

Actual result:

The requests stay in the queue indefinitely, even after reconnecting to internet

Expected result:

The requests should replay upon reconnecting to internet

Reproduces how often:

Easily reproduced - this feature has not worked for at least a few weeks

Brave version (brave://version info)

Brave: 1.43.93 Chromium: 105.0.5195.127 (Official Build) (x86_64)
Revision: 912488396852bf658ab32465980c0b93a3c27a83-refs/branch-heads/5195@{#1109}
OS: macOS Version 12.4 (Build 21F79)

Version/Channel Information:

  • Can you reproduce this issue with the current release?
    • Yes
  • Can you reproduce this issue with the beta channel?
    • Yes
  • Can you reproduce this issue with the nightly channel?
    • Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
    • No
  • Does the issue resolve itself when disabling Brave Rewards?
    • No
  • Is the issue reproducible on the latest version of Chrome?
    • No, the feature/demo works as expected on Chrome and the requests are replayed as soon as the user comes back online

Miscellaneous Information:

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant