I am building an app that requires core date to update every Sunday. e.g. it will save “thisWeek”‘s data to “lastWeek” every beginning of a new week, and reset “thisWeek” to let user input new data for new week.
My question is how to achieve this even if user is not running the app at all?
Just do the archiving if necessary whenever the user starts the app. If your data is timestamped this should be simple and there is no requirement for the phone to even be switched on.