tikhop / Mercato

Lightweight StoreKit 2 Wrapper
MIT License
66 stars 13 forks source link

Purchase not working in iOS 16 #7

Closed neowinston closed 8 months ago

neowinston commented 1 year ago

When I try to make a purchase using command below nothing happens. The purchase sheet doesn't show up in iOS 16:

try await Mercato.purchase(product: product, quantity: 1, finishAutomatically: false, appAccountToken: nil, simulatesAskToBuyInSandbox: false)

Is anyone else having the same problem? Thanks for your help!

sabiland commented 1 year ago

And no errors, nothing? I don't have any problems for now. Try to test it locally with StoreKit configuration file.

neowinston commented 1 year ago

Thanks for your comment. I'm testing on a device and there are no errors logged. I'll try with a StoreKit configuration file.

tikhop commented 1 year ago

@neowinston How is it going? Do you still have any issues with Mercato?

neowinston commented 1 year ago

Yes, I'm still having problems. The purchase sheet doesn't show up in iOS 16.

tikhop commented 1 year ago

@neowinston I think, I was able to reproduce it when I tried to subscribe to auto-renewable subscription. I was getting success message right away without showing the purchase sheet from StoreKit. For me the issue was in the product item itself, two other subscriptions was working well and after re-creating a product on apple connect everything works well again.

Could you please, if you have a chance, verify what Mercato.purchase returns for you in this case.

let purchase = try await Mercato.purchase(product: product, quantity: 1, finishAutomatically: false, appAccountToken: nil, simulatesAskToBuyInSandbox: false)
print(purchase)

Thank you!

tikhop commented 1 year ago

Here is more info: https://developer.apple.com/forums/thread/723126