Google Play Real-Time Developer Notifications
Setting up RTDN via Google Cloud Pub/Sub with Appflow
Overview
Google Play uses Cloud Pub/Sub to deliver real-time notifications about subscription and one-time purchase events. Unlike Apple's direct webhook approach, Google requires you to create a Pub/Sub topic in your Google Cloud project and configure a push subscription that forwards messages to Appflow.
Appflow subscribes to your Pub/Sub topic, processes each notification in real time, and updates subscription state, revenue metrics, and churn signals accordingly.
Setup Google Cloud Pub/Sub
Create a Pub/Sub topic and push subscription in your Google Cloud project. This topic will receive notifications from Google Play, and the push subscription will forward them to Appflow.
Go to the Google Cloud Console and navigate to Pub/Sub → Topics
Create a new topic. Use a descriptive name like appflow-play-notifications
Create a push subscription pointing to the Appflow webhook endpoint:
Grant the pubsub.publisher role to Google Play's service account so it can publish notifications to your topic:
google-play-developer-notifications@system.gserviceaccount.com is managed by Google. Do not modify or delete this account. It must have publisher access to your topic for notifications to be delivered.Configure in Google Play Console
Link your Pub/Sub topic to your app in the Google Play Console so that Google Play publishes notifications to it.
Go to the Google Play Console and select your app
Navigate to Monetization setup (under Monetize in the sidebar)
In the Real-time developer notifications section, set the topic name:
Configure in Appflow
Provide Appflow with the credentials needed to validate Pub/Sub messages and query the Google Play Developer API for subscription details. You can configure this from Settings → Webhooks in the dashboard or via the API:
Field Reference
androidpublisher API scope.Supported Notification Types
Appflow processes all Real-Time Developer Notification types from Google Play. Each notification is mapped to the appropriate subscription state transition and triggers revenue and analytics updates.
Verification
Appflow verifies every incoming Pub/Sub message to ensure it originates from Google and has not been tampered with. The verification process includes multiple layers of validation:
Testing
Use Google Play test tracks to generate test notifications and verify your integration is working correctly before going to production.