-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canceled Subscriptions is not working. #520
Comments
@pavelsust Faced the same issue. The only solution left for me was to use the official Google API to check this. Let me know if you need any help with that. |
Hello @faizan-ali-brainx, could you explain your method please? I'm facing the same problem, it caches the result but it's unclear when does it refresh the cache. |
You should be using isSubscribed("aaa"); |
@tripping-alien Yes, the problem lies somewhere in cashing. When you subscribe for the first time. It always returns true from onward whether you cancel from the play store or your subscription expires. Yes, I was using the isSubscribed() method provided by the library. The pull request # 517 solved this issue I guess. Not sure though. Either you can wait for it to merge or solve it on your own. I didn't had time to wait this long so I opted to use the official Google API for this. You can use this or modify it according to your needs. `class SubscriptionUtils() {
}` And then simply call like this where you want to check
Here isMonthly or isYearly indicates whether your subscription was canceled or expired. True means yes and false means no. Happy coding!!! |
When I used bp.loadOwnedPurchasesFromGoogleAsync, I got the correct autoRenewing value.
|
After successful subscription I had unsubscribe from my google play. But still, now I am getting
purchaseData.autoRenewing true. So how I can solve this issue.
Is there any other way to know user unsubscribed from my service?
The text was updated successfully, but these errors were encountered: