I recently transferred my app from my personal Google developer account to my organization developer account. My android app uses Google Cloud functions like pub/sub and service agents. Since the transfer, I’ve had errors with my cloud functions. I get 401 unauthorized errors for a pub/sub scheduled function and I get a resource name error for my Firestore trigger function. When one transfers apps, do the Cloud Functions permissions invalidate and I have to create them from scratch?
I have tried redeploying the functions several times after the app transfer was complete. I have also added the service account email as a user with the required permissions in the organization developer account’s Google Play Console. Still didn’t fix it. Looking for any push in the right direction please and thank you!
5
Okay so fixed. Seems like adding the service account email to the new Google Play console ‘Users and Permissions’ helped, but it took up to a day to propagate. Then I didn’t receive the 401 error for one of my functions.
The other error was an old error I encountered before but simply forgot. I was getting:
“message”: “Change of function trigger type or event provider is not allowed”,
“status”: “FAILED_PRECONDITION”
I was trying to update the function, but Firebase detected that the trigger type for this function has changed. Cloud Functions do not allow modifying the type of trigger (e.g., from HTTP to Firestore or Pub/Sub) for an already deployed function. I deleted the Cloud Function and redeployed. Worked. Turned out to be unrelated to my App transfer.
Thank you