简体   繁体   中英

Restore purchase not working after updating mac app, SwiftyStoreKit

I am using SwiftyStoreKit for In-App Purchases. It was working fine. Until I uploaded a new build, few users reporting that their Restore Purchase not working. I have tested both In-App and Restore purchase in debug mode, its working fine on my side. Does anyone know what could be the problem?

I'm using macOS 10.15.2 Catalina

After trying different ways, I finally resolved my issue. In AppDelegate Class method applicationDidFinishLaunching , I wrote these 2 lines at start:

    let receiptRefreshRequest = SKReceiptRefreshRequest()
    receiptRefreshRequest.start()

After starting this receipt refresh request, restore purchase successfully started working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM