I use yearly subscriptions with a 7 day free trial period in my app.
Google released the v3 of its billing library and sent emails to developers + wrote blog articles in order to ask an upgrade to the v3 by November 2020.
https://android-developers.googleblog.com/2020/06/new-features-to-acquire-and-retain-subscribers.html
Namely, any app should manage the 'Account Hold' status by November 2020.
Implementation of the 'Account Hold' stuff requires the use of RTDN / Pub/Sub:
https://developer.android.com/google/play/billing/subs#account-hold
Problem: I really don't understand how to implement all this mess.
How do I implement 'account hold' for yearly subscriptions with a 7 day free trial period in my Android app?
Account hold is a subscription state that begins when a user's form of payment fails and any associated grace period has ended without payment resolution. When a subscription enters into account hold, you should block access to your content or service. The account hold period lasts for up to 30 days.
If your app does not store user's subscription information on a backend server and gets their subscription status using BillingClient.queryPurchases()
, then you don't need to change anything.
During account hold, you need to block users access to your premium content. This will automatically be handled if your subscription information is not stored on the backend.
If, however, your user subscription information is stored on a backend server, then you need to enable Real Time Developer Notifications. I created a simple guide here:
https://link.medium.com/mhvjlisnQab
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