Skip to content
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

CheckEntitlements returns past already consumed purchases #246

Open
WiseKodama opened this issue Aug 19, 2024 · 10 comments
Open

CheckEntitlements returns past already consumed purchases #246

WiseKodama opened this issue Aug 19, 2024 · 10 comments
Labels
enhancement New feature or request

Comments

@WiseKodama
Copy link

In our app we offer only consumable purchases.

At the start of the app once the purchases/products are loaded we call Qonversion.GetSharedInstance().CheckEntitlements() since this is what is in the documentation:
You need to call the checkEntitlements() method at the start of your app to check if a user has the required entitlement. This method will check the user's receipt and return current entitlements.
This returns already consumed purchases and their entitlements.

Note that I did not verify the boolean value of IsActive of the returned entitlement.

As far as I know consumable purchase support is still in progress, correct?

@SpertsyanKM tagging you here since you were able to help me before, apologies if this is someone elses territory.

@WiseKodama WiseKodama changed the title UpdateEntitlements returns past already consumed purchases CheckEntitlements returns past already consumed purchases Aug 19, 2024
@SpertsyanKM
Copy link
Contributor

Hello, @WiseKodama.

If you are selling only consumable products, what entitlements do you check in your app? Entitlements are intended for subscriptions and non-consumable in-apps. Can you explain your use-case please?

@WiseKodama
Copy link
Author

WiseKodama commented Aug 19, 2024

Hello @SpertsyanKM, great to hear from you again :)

Basically entitlements are cross linked with our products in the dashboard for easier identification after a purchase has completed.

We also needed to use qonversionInstance.UpdatedEntitlementsReceived += OnEntitlementsUpdated; in order to handle pending purchases.

As for the issue at hand we are unsure why it would return already consumed entitlements?
It shows that there is support for consumable purchases: https://hub.qonversion.io/roadmap/consumable-in-apps-support-from-the-sdk

Basically our use cases are:

  • Handle purchase
  • Handle pending purchase(app in background)
  • Handle pending purchase(app killed) -> Purchase should be rewarded upon start if purchase has completed outside app

Currently there is no option to mark a product as consumable in the dashboard.

@SpertsyanKM
Copy link
Contributor

I'm discussing your case with the team and will return soon

@SpertsyanKM
Copy link
Contributor

Sorry for the late reply.

While we support consumable in-app purchases, we don't support pending purchases for that type of products. This means you can't identify such a purchase with an updated entitlements listener, cause it doesn't actually grant an entitlement (or the entitlement should also be consumable, but that is not so for now).

In a couple of days, we'll discuss with the team the priority of this feature. As soon as I have any news, I'll share them here.

@WiseKodama
Copy link
Author

WiseKodama commented Aug 21, 2024 via email

@SpertsyanKM
Copy link
Contributor

If you link your in-app product to some entitlement, we will grant a lifetime entitlement for the purchase of that product (no matter it is consumable or not) - that is the expected behavior for now. That is why you receive an entitlement for the consumed purchase

@SpertsyanKM SpertsyanKM added the enhancement New feature or request label Aug 26, 2024
@WiseKodama
Copy link
Author

Apologies for the slow response @SpertsyanKM

Are there any plans to make Qonversion work with Consumable purchases that will also cover pending/out-of-app purchases?

@SpertsyanKM
Copy link
Contributor

Yes, we plan to implement this feature by the end of this year.

@WiseKodama
Copy link
Author

Hey @SpertsyanKM 👋
Any chance there is an issue/task tracker for non-subscription purchases support?

@SpertsyanKM
Copy link
Contributor

Hi @WiseKodama,

I think, you can follow this feature request in our hub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants