You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just trying to wrap my head around the following scenario:
User uses my app while offline, creates different system entities which in turn create jobs which require network and are therefore persisted to storage to wait until we get network access.
User turns off app.
User enables network, receives an app update. Update includes changed class files. User opens app, now triggering the jobs to run but now fail due to the Class UUID no longer matching to what was initially there when it was persisted.
What is the correct way to handle a situation like that?
The text was updated successfully, but these errors were encountered:
You need to change your persistent classes in a backward compatible way.
By default, JobManager uses java serialization (to keep things simple) so you can create backwards serializable classes.
Alternatively, you can provide your own serializer that uses json etc to make it more explicit (recommended).
Just trying to wrap my head around the following scenario:
User uses my app while offline, creates different system entities which in turn create jobs which require network and are therefore persisted to storage to wait until we get network access.
User turns off app.
User enables network, receives an app update. Update includes changed class files. User opens app, now triggering the jobs to run but now fail due to the Class UUID no longer matching to what was initially there when it was persisted.
What is the correct way to handle a situation like that?
The text was updated successfully, but these errors were encountered: