I’m working on a package called night-light that automatically switched the user’s configured themes based on the time of day. User’s are able to configure their daytime and nighttime themes in the package settings.
When updating the package to the most recent version, I noticed that the user’s settings did not persist across the update, and all of the package settings reset to their default values. To solve this, I am implementing serialization within my package to keep track of the user’s settings.
Will the data that’s serialized by the package prior to the update persist to the new session?
In other words, is the
serialize method called when updating a package, and is that serialized object passed back to the
activate method after the update? Or do package updates not follow the normal deactivation lifecycle? Thank you in advance for your help!