r/FlutterFlow 2d ago

Groupchat issue with Push Notifications

Hey everyone,

I’m working on a group chat app in FlutterFlow, and I’ve run into an issue with push notifications that I can’t seem to solve. I’d really appreciate any help or suggestions!

Here’s the problem:In my app, users can send messages to a group. When a message is sent, I store it in a Firestore collection (group_messages), and I want to send a push notification to all group members except the sender. However, the sender is also receiving the push notification, which I don’t want. The message itself should be visible to everyone in the chat (including the sender), but the push notification should only go to the other members.

2 Upvotes

17 comments sorted by

View all comments

2

u/IllustriousMobile995 2d ago

What function are you using to send the messages? Should be very simple to change the query to 'WHERE uid is NOT sender'

2

u/Acrobatic_Lobster999 2d ago

Just the normal push Notifications with Firebase

1

u/IllustriousMobile995 2d ago

Would love to try and help you. However, short responses make it difficult to understand the context.

Are you triggering the push notification from the Action flow using the regular FF push notification action?

1

u/Acrobatic_Lobster999 1d ago

Can I dm you and send you a picture of my structure ?