Fallback on mobile devices.
Posted: Thu 02 Oct 2014 13:07
IOS & Android.
I am using SQLITE to store data locally (e.g. customer table).
The client can make changes or add a new customer while online / offline.
On an update button I need to update the MYSQL table on the server.
What is the best strategy to do this?.
1. Do I need a timedate field to see which is the latest record ?
2. How to had version conflicts ?
3. How do I handle a drop in connection whilst updating. Can I get a callback to say 'customerID 7 updated then I can update in the local SQLITE table. Or a callback saying lost connection then I can try again.
Any ideas / tutorial appreciated.
Mr Warby.
I am using SQLITE to store data locally (e.g. customer table).
The client can make changes or add a new customer while online / offline.
On an update button I need to update the MYSQL table on the server.
What is the best strategy to do this?.
1. Do I need a timedate field to see which is the latest record ?
2. How to had version conflicts ?
3. How do I handle a drop in connection whilst updating. Can I get a callback to say 'customerID 7 updated then I can update in the local SQLITE table. Or a callback saying lost connection then I can try again.
Any ideas / tutorial appreciated.
Mr Warby.