Building DotShredzilla (Part 7): Logging From the Lock Screen, 36 Free Badges, and the Backup That Signed Everyone Out
Part 6 ended with version 1.6.0 in Play review: no forced ads, Pro for life, and ad hours a server can trust. Version 1.7.0 came from the same place as every other release, a training session. Between sets my phone is in my pocket or on the bench, locked. Unlocking it with chalk on my hands to tap "Log set" got old fast. So the biggest feature of 1.7.0 doesn't live in the app at all. It lives in…
Part 7 of the DotShredzilla building process covers logging from the lock screen, 36 free badges, and the backup that signed everyone out. In version 1.7.0, the notification shade became the biggest feature, allowing users to log sets without unlocking their phone. The notification displays workout information and options, such as logging a set, increasing reps, selecting the next exercise, and editing the entry.
To read input from the keyboard on the lock screen, the app uses an inline reply box. The parser normalizes the input, converting Arabic-Indic digits and decimal commas to standard digits. The parsed input is then converted into a SetEntry object based on the number of numbers entered. If only one number is entered, it represents repetitions at the same load. If two numbers are entered, they represent the load and repetitions, adjusting for plate usage and per-side machines accordingly.
Notifications cannot open screens, so the Finish button is a normal tap target that opens the app on the workout screen. The app's notification category is set to CATEGORY_WORKOUT, making the buttons usable without unlocking. Additionally, 36 free badges are available for users to earn, adding an incentive to continue using the app. Finally, the backup feature ensures that all user data is safely signed out of the app, providing peace of mind for users.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to