Fix notification preferences that revert
Fix a notification switch that reverts by checking optimistic saves, session and network errors, device registration, and the server-confirmed value.
Last reviewed
Notification switches move immediately, then Dosya saves one key to the server. If that request fails, the client restores the prior value rather than pretending the change persisted.

Steps
- Verify the account email and open notification settings with a stable connection.
- Change only one group or channel. Mobile uses an optimistic overlay; web also moves the switch before the PUT response.
- Watch for Couldn’t save. Try again. on mobile, or web’s Couldn’t save toast with the server error.
- If no error appears, leave and reopen settings to force a fresh GET from
/api/me/notifications. - For Push, also check device permission. The server channel is saved before mobile registration. An OS denial returns normally, shows the settings toast, and refreshes the query; it does not roll back the saved account value or explicitly remove the optimistic overlay.
- Retry after restoring the authenticated session or network. Avoid rapidly toggling several values while diagnosing one failed write.

The endpoint accepts partial maps and stores only recognized channels, 14 group keys, or supported type: opt-ins. An API key cannot change these account settings; the route requires session authentication. Clients intentionally send one changed key per request to avoid overwriting edits from another open session.
Expected result
Reopening the screen shows the intended server-confirmed value. For Push, the OS permission and device registration also agree with the account channel.
Troubleshooting
The value returns immediately. The save call failed and the optimistic UI rolled back. Reauthenticate if needed, reconnect, and repeat the single edit.
Push says enabled after permission denial. Open device settings, allow notifications, then toggle Push off/on. The channel save and native registration are separate operations.
Another device changed the setting. Refresh both sessions. Partial writes prevent a stale screen from intentionally sending its whole old map, but the latest successful write to the same key wins.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.