Since the beginning of mobile apps people tried to build habit apps. What works best for me is just sticking to the 4 simple rules around building lasting habits from the book Atomic Habits:
1) make it obvious, (2) make it attractive, (3) make it easy, and (4) make it satisfying.