RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.27k stars 303 forks source link

Urgent - Purchase issue on iPads #2441

Closed Turacbey closed 1 year ago

Turacbey commented 1 year ago

Describe the bug A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

  1. Environment
    1. Platform: iOS
    2. SDK version: 4.17.11
    3. StoreKit 2 (disabled with useStoreKit2IfEnabled(false)) (Y/N): Y
    4. OS version: 16.2 - 16.3 and maybe others
    5. Xcode version: 14.3
    6. How widespread is the issue. Percentage of devices affected. all I tried
  2. Debug logs that reproduce the issue NONE
  3. Steps to reproduce, with a description of expected vs. actual behavior When I try to make a purchase on iPad devices, I get "The receipt is missing" error. This only happens on iPads and it was happening on earlier version of the Revenuecat SDK
  4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Code;

 func makePurchase(package: Package){
        showProcess = true

        Purchases.shared.purchase(package: package) { transaction, purchaserInfo, error, userCancelled in
            self. showProcess = false

            if !userCancelled, error == nil {
               self.errorMessage = "Success!"
            }
            else if error != nil && !userCancelled {
                let errorMessage = error?.localizedDescription ?? "Error"                
                self.errorMessage = errorMessage
            }
        }
    }
RCGitBot commented 1 year ago

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

NachoSoto commented 1 year ago

Thanks for the report! Is this happening on simulator and/or device? Are you signed into a sandbox account?

Turacbey commented 1 year ago

@NachoSoto I haven't tried the reproduce the issue. I have got many messages from Apple Team about the issue.

NachoSoto commented 1 year ago

That's a known Apple issue, see https://github.com/RevenueCat/purchases-ios/issues/2120#issuecomment-1351873937

We have some guidance in https://community.revenuecat.com/sdks-51/missing-receipt-leading-to-many-app-store-rejections-2321. Unfortunately the only workaround at the moment is to resubmit the app for review, as this is purely an issue on Apple's end.

Turacbey commented 1 year ago

Thank you for the info.

Hint: I didn't change any iap products, they were already approved and available products.

According to written, all says that switching from StoreKit2 to StoreKit1 helps.

github-actions[bot] commented 1 year ago

This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.