androidin-app-purchasein-app-billinggoogle-cloud-pubsubandroid-inapp-purchase

Android Real Time developer notification for one time purchase is half working


Android's Real Time developer notification works when I use "Slow test card, approves after a few minutes". I'm getting two notifications on my server via pub/sub. One when the purchases has been made and with token and order withconsumptionState:0 in it. And the second notification, after it has been consumed, with token and order with consumptionState:1 in it. Exactly what I want and expect.

BUT when I use "Test card, always approves" for the same one-time consumable purchase I'm not getting any "Real Time developer notifications" at all.

Am I the only one experiencing such behavior? Is this by design? How to get the notification all the time?


Solution

  • This is no longer true! Google Play has added full support of Real Time Developer Notifications for in-app products.

    In Monetization Setup, there is an option now for receiving all one-time product notifications:

    Google Play monetization setup

    The documentation now mentions the whole in-app flow with the corresponding RTDN events:

    https://developer.android.com/google/play/billing/lifecycle/one-time