I am making an android application. The user can basically order food from the app. Should i keep track of the previous orders of a user locally on the phone or let it be on the server or do both and sync them or something entirely different.
P.S. In my server side script i am keeping the logs as of right now.
Probably on the server, so they can access it from a new phone or from the website, and so you can analyze the data.
Frank Tamre
Android , Flutter, Psychology
On device and server.
Think of data collection. It's better when you have it on the server side because, in addition to your logs it's easy to build a dashboard that can represent this data.
collecting this data both on the device and on the server and later syncing is a good idea especially with the users who may have trouble with internet connectivity.
Hope that helps.