You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we continue to expand our application, we will need to add more information regarding our users to be able to track specific aspects, such as their total points collected.
Task
Add the following attributes to the user documents in Firebase during the account registration process:
total points collected (totalPoints) - number
current daily streak (dailyStreak) - number
personal impact & environmental footprint (footprint) - number
sprit trash, determined when onboarding (spiritTrash) - string
Of course, these attributes will not be present on any existing user accounts that we have made so far, so you will have to make a new account after. Additionally, these values can be hardcoded for testing, but after be sure to initialize all the numbers to 0.
Display these new attributes on the profile page. Use the sketch (see below) as a reference. For attributes not drawn out yet (ex. spirit trash), add them yourself as you see fit! For the daily streak, ensure it is displayed in the header (which is hardcoded at the moment).
Add the daily streak functionality that increments a user's current streak by 1 when they open the app again after 24 hours. If a user does not log in within that 24 hour window, reset their streak back to 0.
Additional Notes
Features being addressed:
Personal Impact & Environmental Footprint
Points for Correct Waste Disposal
Daily Scan Streak Feature
Spirit Trash Onboarding
The text was updated successfully, but these errors were encountered:
Problem
As we continue to expand our application, we will need to add more information regarding our users to be able to track specific aspects, such as their total points collected.
Task
Of course, these attributes will not be present on any existing user accounts that we have made so far, so you will have to make a new account after. Additionally, these values can be hardcoded for testing, but after be sure to initialize all the numbers to 0.
Display these new attributes on the profile page. Use the sketch (see below) as a reference. For attributes not drawn out yet (ex. spirit trash), add them yourself as you see fit! For the daily streak, ensure it is displayed in the header (which is hardcoded at the moment).
Add the daily streak functionality that increments a user's current streak by 1 when they open the app again after 24 hours. If a user does not log in within that 24 hour window, reset their streak back to 0.
Additional Notes
Features being addressed:
The text was updated successfully, but these errors were encountered: