I am building an exercise app, and I would like to give my user 'points' whenever they complete one rep of an exercise, with a progress bar always at the bottom of the screen. Then, there are levels of different points, which is what the progress bar is for. The points should be saved locally, and when a user bypasses a level, the app should send a push notification. Points should be given per exercise, so a half workout only gives out half points. How do I do this?
I have attached the code I have so far:
Thank you.