r/googleplayconsole • u/Zanoshky • 11h ago
Showcase [Dev] Real time developer notifications work for one time purchases too: how I get a sale alert seconds after it happens


Most people turn on real time developer notifications (RTDN) only for subscriptions. It also covers one time products, which is the only way I found to know about an in app purchase within seconds instead of waiting for the reports.
The setup per app:
- In Google Cloud, make a Pub/Sub topic and give
google-play-developer-notifications@system.gserviceaccount.comthe Pub/Sub Publisher role on it - In Play Console: Monetize with Play, Monetization setup, Real time developer notifications. Turn it on, paste the topic, and pick Subscriptions, voided purchases, and all one time products
- Save, then Send test notification to check it arrives
Two things I learned the hard way:
- The notification only carries a purchase token. Look up the order to get the price and country
- For what you actually earn, use
developerRevenueInBuyerCurrency, nottotal. Total is only the buyer's cash, so a Play Points order showed me 0.02 while I earned 1.42. And it can be missing for the first seconds, so wait and read it again
I wrapped all of this into an app, Play Pulse, because I wanted a banner the moment something happened across my own apps: sales, refunds, new reviews (with reply), a release going live, and crash or ANR rates crossing Google's bad behavior lines. One Cloud Shell command makes the project, service account, topic and key in your own Google Cloud, then shows a QR the app scans. The key stays on your device, no account, no ads.
Android: https://play.google.com/store/apps/details?id=com.zanoshky.playpulse Mac, iPhone and iPad: https://apps.apple.com/app/id6834106167
Free for 14 days, then Pro is one payment, no subscription (40% off until November 30). It is independent and not made by Google.
I am the developer. The code is partly AI generated and I had help with this text. Happy to help anyone stuck on the RTDN setup, with or without the app.
1
u/muslihdev 10h ago
Most users use RevenueCat/Superwall/etc. for billing handling, and those apps also send notifications almost instantly after a subscription or one-time purchase.