Unable to Send Test Notification From Real-time developer notifications in Google Play Console

3.8k views Asked by At

I have followed these steps:

  1. Go to Google Cloud Console and create/select a project.
  2. On the header, click to open the menu and select ‘Pub/Sub’, or click https://console.cloud.google.com/cloudpubsub/topic/list
  3. Create/select a topic.
  4. Add the service account [email protected], and grant it the role of Pub/Sub Publisher.
  5. Create a subscription. There are 2 types of subscription:
    • Pull: we need to configure our server to pull for new messages.
    • Push: Similar to ios, the notification is send to the endpoint we configure.
  6. Go to Google Play Console and select your app.
  7. Click on ‘Development tools’, then ‘Service & APIs’.
  8. On Real-time developer notifications type the topic name.
  9. You can send a test notification to test that all is connected.

But When I send test notification I get this error:

An error occurred with the test publish on topic projects/project_id/topics/topic_name. Ensure that the topic is correctly created and configured, and the required permissions are set. Refer to the Real-time Developer Notification's Pub/Sub Guide to learn more.

But

  1. I have given pub/sub publisher permission to my service account.
  2. topic name is correct too.
  3. I am able to send test message from this topic in google developer console and I am receiving that response on my server.

any help is appreciated.

1

There are 1 answers

6
Kamal Aboul-Hosn On BEST ANSWER

The step that is typically missed in cases like this is the one to grant the Publisher role to the service account [email protected]. This is not a service account that one creates, but one that already exists. This is the service account that the Google Play infrastructure uses to publish, which is why it must be this specific account that is granted the Publisher role.