4MyCiTy is a mobile platform designed to transform individuals into active contributors in the fight against food waste and environmental impact. Instead of acting as a simple resource directory, the app serves as a real-time impact dashboard where users can track their contributions — including food rescued, CO₂ reduction, compost diverted, donations, and volunteer hours.
The platform connects users to a closed-loop ecosystem through key programs such as food rescue, composting, health access, and workforce training. With features like live community maps, actionable alerts, and verified impact tracking, users can easily engage with local initiatives and see the direct results of their actions.
A unique aspect of 4MyCiTy is its token-based reward system (CiTy4Change), where every verified action generates measurable value, reinforcing engagement and long-term participation.
The result is a purpose-driven app that empowers communities, promotes sustainability, and turns everyday actions into tangible impact.
4mycity.us
A push notification model usually breaks in one of two ways: a second phone stops receiving anything, or notifications keep arriving for the account that just signed out. Both come from storing one push address per user. Store one row per app installation instead, with the user ID as a field, and someone with a phone and a tablet has two rows that a single query returns.
The sign-out half has an ordering trap. Delete the installation row while the user is still signed in, then call signOut. A security rule that compares the row owner to the signed-in user refuses the delete once there is no user left to compare against, and the device keeps pointing at the previous account.
The full write-up covers the Firestore rules, the Flutter registration listener, a server cleanup that handles both unregistered error codes, and an acceptance sequence to run on two test installations.
Great technical breakdown! Handling multi-device FCM tokens and secure sign-out correctly is essential for reliable push notifications. I appreciate the focus on both architecture and real-world edge cases. 👏
I'm a Social Media Manager passionate about helping businesses build a stronger online presence through engaging content and consistent social media strategies.
I can help businesses with:
📱 Instagram and Facebook management
🎨 Social media content creation
✍️ Captions and content planning
📅 Content calendars and scheduling
💬 Community engagement
I'm excited to connect with businesses, entrepreneurs, and growing brands looking to improve their social media presence.
Are you looking for help with your social media? Let's connect! 🚀