Skip to content

Conversation

@OwsleyJr
Copy link
Collaborator

@OwsleyJr OwsleyJr commented Jul 3, 2025

Description

So push subscriptions are quite tricky, especially on webkit as it will randomly set the current subscription to null at random while there seems to be no issues with chrome based browsers. The previous PR was pushed up just to test and verify that this was happening.

With the current logic already in place, we can now just add a local storage flag on the user device denoting if push notifications are enabled or not. This will allow us to resubscribe if the subscription becomes null.

Screenshot (if UI-related)

N/A

To-Dos

  • Successful build yarn build

@cypress
Copy link

cypress bot commented Jul 3, 2025

overseerr    Run #2839

Run Properties:  status check passed Passed #2839  •  git commit be14337922: fix: add flag in local storage for notifications
Project overseerr
Branch Review refs/pull/4180/merge
Run status status check passed Passed #2839
Run duration 02m 34s
Commit git commit be14337922: fix: add flag in local storage for notifications
Committer Brandon Cohen
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 28
View all changes introduced in this branch ↗︎

@OwsleyJr OwsleyJr marked this pull request as draft July 3, 2025 15:22
@OwsleyJr OwsleyJr marked this pull request as ready for review July 3, 2025 15:27
@sct sct merged commit 325eecb into develop Jul 3, 2025
8 checks passed
@sct sct deleted the fix/push-subscription-localstorage branch July 3, 2025 23:10
OwsleyJr added a commit that referenced this pull request Oct 8, 2025
* fix: add flag in local storage for notifications

refactor: update comment

* fix: always resubscribe if subscription is not valid
ThePharmer pushed a commit to ThePharmer/requesterr that referenced this pull request Nov 12, 2025
Syncs fork with upstream Overseerr develop branch, bringing in 18 bug fixes
and improvements from commits 4cc3495..5ef098f.

Key upstream improvements merged:
- fix(api): update Plex Watchlist URL (sct#4220)
- fix: add flag in local storage for notifications (sct#4180)
- fix: add push subscription verification and resubscribe logic (sct#4163)
- fix: better handling for active webpush subscription (sct#4146)
- fix: handle partial seasons more reliably (sct#4116)
- refactor(MediaRequest): consolidate lifecycle hooks (sct#4124)
- Multiple webpush notification improvements
- Media entity cascade fixes
- Various UI and request handling fixes

Conflicts resolved:
- README.md: Preserved Requesterr fork branding and attribution

All Requesterr branding (translations, CSS classes, settings) remains intact.
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.

3 participants