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

in-app purchases handling on SK2 #4363

Open
morisgateno-appsflyer opened this issue Oct 9, 2024 · 3 comments
Open

in-app purchases handling on SK2 #4363

morisgateno-appsflyer opened this issue Oct 9, 2024 · 3 comments

Comments

@morisgateno-appsflyer
Copy link

Hi.

The below function seems not to handle the consumable purchase.

On the other hand, when doing observerMode = true,
the purchase is handled on:

let allTransactions = await allTransactionsProvider.getAllTransactions()

So technically when not observing the the consumables are not observed?

Thanks.
Moris.

@RCGitBot
Copy link
Contributor

RCGitBot commented Oct 9, 2024

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@fire-at-will
Copy link
Contributor

Hi @morisgateno-appsflyer, thanks for filing this ticket!

Would you mind providing some additional info about the issue you're seeing so we can get a better understanding of what's going on?

  • What SDK version are you using?
  • How is your app configuring the SDK? Which configuration options are you using?
  • What is the expected/actual behavior that you're seeing?
  • What is the code doing when you are experiencing the issue? Can you provide a code snippet?
  • What environments and OS versions are you seeing your issue in? Production, sandbox, Xcode?

Thanks!

@morisgateno-appsflyer
Copy link
Author

  • 5.5.0
Purchases.logLevel = .debug
Purchases.configure(withAPIKey: "<API_KEY>", appUserID: nil)

I want to debug what happens to a purchase observer after I purchase a consumable product.
StoreKit2TransactionListener class seems to catch only subscriptions and non-consumables.

I see you use Transaction.update which actually make sense it will not catch consumable in-apps.

How can I catch the consumable in-apps if so?

What is the StoreKit2ObserverModePurchaseDetector?

  • sandbox

Thanks.
Moris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants