Suppose I have a mobile app which has a Daily Challenge System similar to that of Clash Royale or Duolingo. Each daily challenge is different, for example one might require a user to complete a game, whereas another might require a user to stay on the app for a period of time. When the criteria to increment a users progress for a specific daily challenge is met, a request is issued to an API to update the users daily challenges in the database
.
If i store each Daily Challenge in the database and each challenges ID in the frontend, in the future if I want to create additional challenges I will also have to update the list of challenge IDs in the frontend for the next frontend release version, so the two remain in sync. However, older versions of the frontend will not have the updated list of challenges, so what is the correct approach to overcome this issue?