Closed vegaro closed 1 month ago
1 Message | |
---|---|
:book: | Size increase: 2.26 KB |
Generated by :no_entry_sign: Danger
Attention: Patch coverage is 85.71429%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 83.14%. Comparing base (
33a4377
) to head (b76d5e1
).
Files | Patch % | Lines |
---|---|---|
.../com/revenuecat/purchases/google/BillingWrapper.kt | 85.71% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It is possible to consume after only acknowledging. But that made me think of something else, that it is that we are saving tokens in the cache even for non-consumables. That means that when calling queryPurchases
, since that token is in the cache, we will post it to the backend, and we will never know if the product has been changed to be a consumable and needs to be consumed. The only way we will consume that purchase after being made a consumable is if the app is reinstalled (and the cache cleaned) or if the user restores purchases (where we don't check the token cache).
Yeah that's a good point, I considered it but seems like an edge case to me. So this would affect devs that turn a non-consumable into a consumable and want the products to be consumed immediately. And for those, we can ask them to perform a restore as you said... Do you think we should support this use case?
After #1697 , we stopped consuming non-consumables if the backend indicates to not consume them. Non-consumables still need to be acknowledged, otherwise they get refunded, this PR fixes that.
For reference, https://developer.android.com/google/play/billing/integrate#non-consumable-products