Android Question Subscription with free trial not working

Cleidson

Member
Hello everyone,
Some time ago, I asked the community for help regarding an issue with app subscriptions. Here is the link to that topic:


At the time, I managed to identify my mistake, and the app worked perfectly during testing. However, something strange started happening once the app was published.
I configured the Play Console to offer a 14-day free trial. Since I had already run countless tests myself, I asked an acquaintance to download the app so I could verify if the free trial was working as intended.
He downloaded and paid for it, but the app isn't recognizing the subscription. I can see the purchase in the Play Console—the order exists—but the app doesn't acknowledge it. Even my external handler, which should have registered the purchase, wasn't triggered; in other words, the `billing_PurchasesUpdated` event didn't fire after the purchase.
The odd thing is that when I made a purchase myself—having already used up my free trial—there were no issues at all. I even reinstalled the app, and it worked perfectly.
Does anyone know how I can resolve this problem?
 
At the time, I managed to identify my mistake, and the app worked perfectly during testing. However, something strange started happening once the app was published.
What was your mistake?
I configured the Play Console to offer a 14-day free trial. Since I had already run countless tests myself, I asked an acquaintance to download the app so I could verify if the free trial was working as intended.
He downloaded and paid for it, but the app isn't recognizing the subscription. I can see the purchase in the Play Console—the order exists—but the app doesn't acknowledge it. Even my external handler, which should have registered the purchase, wasn't triggered; in other words, the `billing_PurchasesUpdated` event didn't fire after the purchase.
The subscription without free-trial worked? The billing_PurchasesUpdated is fired?
The odd thing is that when I made a purchase myself—having already used up my free trial—there were no issues at all. I even reinstalled the app, and it worked perfectly.
Does anyone know how I can resolve this problem?
I don't use free-trial in my subscriptions and most the problem to create a subscription to Android and IOS I can solved using ChatGPT and Gemini.
Maybe you can try one this AIs.
 
Upvote 0
Hello ASales,
How are you? I hope all is well. First of all, thank you for your attention.
Due to my lack of experience, I can't say for sure if it was a bug or just code placed in the wrong spot. If you look at the example I posted back then, the entire routine—calling the purchase screen, making the purchase, and processing what I needed—was inside an activity that could get destroyed mid-process. So, I moved everything to `MainPage`. From that moment on, the error described in that post stopped occurring.

The subscription without a free trial worked without any issues. I still run that check today, and everything works as it should: I verify if there’s a valid subscription; if so, I unlock the features; if not, I notify the user that they need to subscribe. It’s mostly a personal preference—after all, the subscription is set to recur, and Google Play handles that automatically. I do use test subscriptions, but as I mentioned, I also purchased a subscription just like a regular user would, and there were no problems. However, I no longer have the option to use the free trial since I’ve supposedly already used it.

“I don’t use free trials for my subscriptions, and I manage to solve most issues related to setting up Android and iOS subscriptions using ChatGPT and Gemini. Maybe you could try one of those AIs.”

Regarding the use of AIs: right now, as I reply to you, I’m testing yet another solution they suggested. But if that doesn’t work, I’ll follow your approach—no free trials. If the user doesn’t like the app, they can ask for a refund, and life goes on.
 
Upvote 0
Hello everyone,
Some time ago, I started this thread looking for a solution to the problem mentioned above, but the error persisted during testing. Eventually, I began to suspect the issue wasn't the code itself, but rather my Play Console configuration. So, I’m reaching out for some guidance regarding the "App price" field under "Products." I had set it to "Paid," but some research suggests it should be changed to "Free."
My question is: even if the app is classified as "Free," is it possible to sell subscriptions for it without violating any Google Play policies?
Thanks in advance for your help.
 
Upvote 0
Setting the app to "Free" is the standard way to offer in-app purchases and subscriptions (freemium model).
All of my published apps are free, with options for in-app purchases or subscriptions.
 
Last edited:
Upvote 0
Back
Top