Files
Sable/src
7w1 b52e59f149 fix(notifications): sync background push toggle when OS permission denied (#1156)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

On mobile, backgroundPushEnabled defaults to true. Startup
auto-registration threw on permission denial but only logged a warning,
leaving the toggle ON even though push was non-functional. Now syncs
backgroundPushEnabled to false and clears the provider when registration
fails due to denied/dismissed permission. Transient errors are left
alone.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-20 17:04:47 +00:00
..
2026-07-19 22:41:49 -05:00
2026-07-05 06:10:16 +03:00
2026-04-02 00:00:41 -05:00
2026-07-19 16:06:20 -05:00
2026-07-19 16:06:20 -05:00
2026-07-05 06:10:16 +03:00
2026-07-18 13:40:36 +02:00
2026-07-18 13:40:36 +02:00
2026-07-05 06:10:16 +03:00