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?
Note: You must call the Google Play Developer API after receiving Real-time developer notifications to get the complete status and update your own backend state. These notifications tell you only that the purchase state changed. They do not give you complete information about the purchase.
You should expect at least one notification for each user during a billing cycle. To enable Real-time Developer Notifications, you must first set up Cloud Pub/Sub using your own Google Cloud Platform (GCP) project and then enable the notifications for your app. To use Cloud Pub/Sub, you must have a GCP project with the Cloud Pub/Sub API enabled.
That's it! Now Nami is set up to receive real-time developer notifications and will update your customers' subscription state with the latest information from Google. Did this page help you?
The Google Play Developer API is a server-to-server API that complements the Google Play Billing Library on Android. This API provides functionality not available in the Google Play Billing Library, such as securely verifying purchases and issuing refunds to your users.
No, I just added a subscription to an app and didn't do anything with real time notifications.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With