Reputation: 497
I want to add Google Cloud Messaging & Notifications to my server.
I have added following role to my service account, but still I couldn't send the messages from my server.
Firebase Cloud Messaging Admin
I dig a little deeper and find out that we need following permission to make it work.
cloudmessaging.messages.create
This permission is available in default all access account but if I create new Service Account with specific access grants, I cant find this permission anywhere.
Please help guys!
Upvotes: 1
Views: 1994
Reputation: 151
cloudmessaging.messages.create is supported by the following roles
U can check the following page for the roles. Understanding Roles
Upvotes: 2
Reputation: 324
In order to gain the permission "cloudmessaging.messages.create" please attempt to use one of the following roles:
roles/firebase.admin
or
roles/firebase.growthAdmin
As identified by the community via public documentation, the Cloud Messaging Roles do not contain the permission required in this case.
Upvotes: 5