Implement a good algorithm when the "you can now do the long term exercise for these words"-modal should be displayed when finishing a module.
What would be a good algorithm?
1) The modal should be displayed the first time a module is finsihed after a user installed the app
2) The modal should not be displayed every time a module is finished
3) (optional) The modal should be displayed more often, when the user is not doing the long term exercise at all or only rarely
Suggestion: Maybe we can save something like "longTermExerciseReminderInterval" and "LongTermExerciseReminderSkipNextXTimes", update them when a module is finished like this:
if(SkipNextXTimes > 0) {
SkipNextXTimes--
} else {
showModal()
SkipNextXTimes = ReminderInterval
ReminderInterval = ReminderInterval * 2
}
So if we init ReminderInterval = 1 and SkipNextXTimes = 0
User will get a reminder after completing the first module, the third module and so on. But feel free to think a better logic
**Environment**: -
**Linked issues:**
Stefanie Metzger - 11.8.2023, 10:16:43
Implement a good algorithm when the "you can now do the long term exercise for these words"-modal should be displayed when finishing a module.
What would be a good algorithm?
1) The modal should be displayed the first time a module is finsihed after a user installed the app
2) The modal should not be displayed every time a module is finished
3) (optional) The modal should be displayed more often, when the user is not doing the long term exercise at all or only rarely
Suggestion: Maybe we can save something like "longTermExerciseReminderInterval" and "LongTermExerciseReminderSkipNextXTimes", update them when a module is finished like this: