Menstruation Nation (M. Nation) is a free period tracker designed for youth. The app helps people learn more about their bodies by tracking their period cycle and symptoms.
This PR integrates data persistence with the Settings Page. I had to make some additions to the database. Here is a summary of the changes in this PR:
Uses the app viewmodel to store symptoms to be tracked and updates the database if user wants to change the symptoms to be tracked
The database now also stores whether the user wants reminders or not, the frequency and time.
Notifications are only sent if the user has given the app notifications permissions AND if they indicate they actually want the notifications from the app
If the user indicates they don't want notifications, this doesn't take away the system's notification permission but the notifications will not be sent
Used the app view model to get the frequency and time of notification and used this information to display on the main settings page
NOTE: repeating notifications are included in this PR but there might be a better way to implement it - still figuring that out though
This PR integrates data persistence with the Settings Page. I had to make some additions to the database. Here is a summary of the changes in this PR:
NOTE: repeating notifications are included in this PR but there might be a better way to implement it - still figuring that out though