6

Currently I'm trying to learn how to use Google Play Billing Library V1.2 for implementing In-App Purchases (IAP) - Subscriptions mainly in my Android app.

While looking at Add subscription-specific features, I came across this:

Also, before reading the rest of this page, you should also have real-time developer notifications enabled. Real-time Developer Notifications allow you to react proactively to state changes, to increase your engagement, and to reduce user turnover.

And when I tried to check Add real-time developer notifications, it told me I needed to setup Cloud Pub/Sub using my own Google Cloud Platform (GCP) project. Then I checked GCP and found that it is a heavily paid service which I can't seem to go for, considering that it is my first app that I'm talking about.

So, my question is that is it really a must to enable Real-Time Developer Notifications for implementing subscriptions in an Android app? If yes, do we always have to go through a paid service like GCP to achieve this or are there any free options too?

Shahood ul Hassan
  • 745
  • 2
  • 9
  • 19

2 Answers2

6

No, I just added a subscription to an app and didn't do anything with real time notifications.

nasch
  • 5,330
  • 6
  • 31
  • 52
  • Hi, I am getting old cached purchase result in the subscription renewal. Do you know how long it takes to get the latest purchase. Any Idea? – DhineshYes Jan 25 '20 at 05:39
  • No I don't sorry. – nasch Jan 26 '20 at 13:10
  • How do we get renewal and cancellation status on app side with purchase response ? any idea ? do we need to implement real time developer notification for that ? – Jay Rathod Dec 10 '20 at 11:58
0

If you do not implement RTDN then you have to poll Google API periodically to get the latest user information and you have to do it for all of your users (it is paid, you do not want to excessively use it). You also have to implement the logic for that, and I would find this quite fragile and inefficient. Moreover, you will have to manage cases such as revoked, canceled, etc. from your back office(if you have any) or you are gonna have to manipulate your database manually. Coming back to your questions, it is not a must but you will have a lot of benefits from implementing them.

Tartar
  • 5,149
  • 16
  • 63
  • 104