Unable to deploy push notification functions to firebase from multiple projects - RESOLVED

General Conversations

So I had been struggling with a project I had connected with firebase.

There were actually two different flutterflow apps connected to the same firebase project, everything worked perfectly except for when I wanted to deploy the push notification functions, only the first deployment succeeded and I was totally unable to deploy the second flutterflow project's functions at all, it only ever presented a dialog with a suggestion to contact support, that's all.
I tried reconnecting the firebase project to the flutterflow project twice, generating config files multiple times, even trying deleting the apps from firebase then regenerating them, also deleting the sendPushNotificationTrigger cloud function then redeploying, tried basically everything related to firebase but no fruit.
Then after contacting support multiple times, they provided me with these steps
To resolve the unknown error when deploying push notifications, follow these steps:
​
1. Check your billing on the Firebase project and make sure there is no issue with your billing account.
2. Go to Firebase functions and remove the functions related to push notification that FlutterFlow created.
3. Return to FlutterFlow, turn off the push notification, then turn it back on, and try deploying again.
4. Ensure that the region in which Push Notifications are deployed is the same in Firebase and FlutterFlow. Check that your cloud functions region is the same in both platforms.
5. If the issue persists, check the browser's console while trying to deploy the push notifications to see what error it shows. Try heading over to the Firebase functions of your project, removing all the existing cloud functions, and deploying the push notifications after that.

Please take a look at the attached article and follow the steps to see if it fixes the issue that you are experiencing.

https://intercom.help/flutterflow/en/articles/6156999-troubleshooting-push-notification-issues-in-flutterflow?location=conversation

this time I deleted the addFcm cloud function as well.
Finally I got what I was doing wrong and that was possibly when I was deleting the sendPushNotificationTrigger cloud function, I wasn't deleting the addFcm cloud function with it.
This fixed the issue

2