Edouard
Edouard2mo ago

Push Notifications From Flutterflow app Stopped Working With Buildship

Hello ! I'm facing a really weird issue. Everything was working fine, and without any changes, the push notifications don't work anymore when it's triggered with Buildship. However, I see the the notifications sent by Buildship in firestore with status : "succeeded". It's just the "num_sent" field is at 0 instead of many users. The Buildship's logs are also "Succeeded". It feels like Buildship has the correct rights to write but the notifications are not sent. But it works when a notification is sent manually from Flutterflow... Any idea of what I should check ? Thank you very much. Edouard
No description
No description
Solution:
Hi @Stu , FYI, there was a bug on flutterflow side, they are deploying a fix right now. Thank you for your help !
Jump to solution
17 Replies
AI Support
AI Support2mo ago
AI Support Bot Information
<@689458954933108799> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
Gaurav Chadha
Gaurav Chadha2mo ago
cc @Stu any insights here?
Stu
Stu2mo ago
Hi @Edouard this is a strange one, especially since it has previously been working. Can you share with me what the ff_push_notifications document looks like for a successful notification sent manually from FlutterFlow? I'm not aware of anything that should have changed with the cloud function but perhaps there's a hint there?
Edouard
Edouard2mo ago
Oh thank @Stu . I just tried to send a new one, and it didn't work with Flutterflow either with this one. My bad. But the notification is set with Succeeded in firebase. What could block the notification if flutterflow and buildship can write in firestore ?
No description
Stu
Stu2mo ago
I'm wondering if it requires a user id? And if this could be a new requirement? If you could get a successful notification sent we can do a comparison with what BuildShip is producing @Edouard
Edouard
Edouard2mo ago
Yes, i'll try with a user id. I just need a minor fix to get the user id on my app (as I use the anonymous login of flutterflow) to get one that I can test on my device. Keep you posted @Stu It doesn't work, even with a user id. The push is correctly added in firestore, but no push sent in reality 😦
Edouard
Edouard2mo ago
No description
Edouard
Edouard2mo ago
I doubbled check all the rights in the admin, i really don't get what could happened
Stu
Stu2mo ago
@Edouard Hmmmm... well that says to me that there's a deployment issue on the FlutterFlow side. Can you try Redeploying in Settings --> Push Notifications
Edouard
Edouard2mo ago
Yes I did it too, didn't change anything 😕
Stu
Stu2mo ago
I'm sorry @Edouard I'm at a bit of a loss. You could try going back to basics and see if sending a notification in Firebase Console works (in the Messaging section, click 'New Campaign'): https://console.firebase.google.com/ Perhaps there has been something changed within FlutterFlow or Firebase Messaging that I'm not across. The BuildShip node does rely quite heavily on FlutterFlow facilitating the process, so a search on the FlutterFlow community forums might also be worthwile?
Edouard
Edouard2mo ago
@Stu , that's exactly what I did. And it works with the Firebase Messaging. I have other apps and there's no issue. I'm probably missing something on this one... I wrote to the flutterflow support. Thank you for your help!
Solution
Edouard
Edouard2mo ago
Hi @Stu , FYI, there was a bug on flutterflow side, they are deploying a fix right now. Thank you for your help !
Stu
Stu2mo ago
Thank you so much for circling back! That's great to know. 🔥
Coerage :)
Coerage :)5w ago
Could you please explain this? I have the same problem.
Edouard
Edouard3w ago
Hello! My issue was fixed by flutterflow. When I give a userId, it's correctly sent to the user, like before. But it doesn't work if I let the User Reference field empty. What's the best way to send a push notification to every user ?
No description
Stu
Stu3w ago
FlutterFlow Push Notifications use v1 of the Firebase Cloud Messaging API, which is essentially what this node is tapping into (for ease with existing FlutterFlow users). However, v1 of the API no longer provides support for sending a push notification to every user. One or more userIds need to be provided for this node to work. We are working on alternative push notification solutions, including support for v2 of the Firebase Cloud Messaging API and support for OneSignal, and from the FlutterFlow forums I understand the Flutterflow team are also working on a solution for this. (cc @Harini @Shams )