Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class UUID doesnt match - Handling app updates #280

Open
mattvb91 opened this issue Nov 10, 2016 · 1 comment
Open

Class UUID doesnt match - Handling app updates #280

mattvb91 opened this issue Nov 10, 2016 · 1 comment

Comments

@mattvb91
Copy link

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?

@yigit
Copy link
Owner

yigit commented Nov 11, 2016

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants