Theme resetting to default for some of my users every 7 days

Are all those users on Apple devices?

By default, a custom theme applies only on the current device, unless you check this box manually:

image

When that happens the theme preference is saved locally in the device using a cookie.

On Apple devices native browsers, those cookies are removed after 7 days:

Workarounds are:

  • Apply theme to all devices, so we save that on the server

  • Never fail to visit the site for 7 days

  • on MacOS you can use another browser. Not an option on iOS

  • on iOS you can install the Discourse PWA with “Add to Homescreen” which bypasses the normal 7 days counter for a different one.

4 Likes