Issue
My Android audience did not receive the message. I got "Permission Denied" error in the Delivery Report for Android platform:
Troubleshooting
Note that this error is reported to us by Firebase service. Therefore, the necessary actions must be performed on the side of your Firebase account, not on the Pushwoosh side.
To send push notifications via Firebase gateway (FCM), you need credentials with the following Firebase Cloud Messaging permissions:
| Permission name | Description |
|---|---|
| cloudmessaging.messages.create | Send notifications and data messages through the FCM HTTP API and Admin SDK |
Source: Firebase IAM permissions | Firebase Documentation
To check and grant this permission for the user or service account whose credentials Pushwoosh uses:
- Open your Firebase project settings and go to the "Advanced permission settings" tab (this is Google Cloud IAM).
- Choose the relevant user or service account and click its permissions.
- A sidebar with the account's permissions opens; confirm
cloudmessaging.messages.create(or the Firebase Cloud Messaging Admin role) is granted.
You can also check what permissions a particular user has in Google Cloud Console → IAM → Permissions → "Permissions for project <your_project>". If the issue persists, contact Firebase support for help with your project's IAM configuration.
Comments
0 comments
Please sign in to leave a comment.