SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

Jailbreak device handle

Open tiendaik opened this issue 2 years ago • 2 comments

I have read code and search for issue but I can't find any issue related to keyword "jailbreak", so I want to know SwiftyStoreKit has handle this or not? Here is the guide link to get free in app purchase on jailbreak device. Basically the addPayment call is intercepted and the updatedTransaction delegate method is called back immediately with a state of SKPaymentTransactionStatePurchased.

tiendaik avatar Feb 09 '22 08:02 tiendaik

Verify the purchase by sending the receipt to backend, if it validates reward the user.

harsh12312 avatar Feb 22 '22 09:02 harsh12312

Verify the purchase by sending the receipt to backend, if it validates reward the user.

I have one non-consumable in iOS app (premium update) , Do you mean that every time the user opens the app i have to do

    let appleValidator = AppleReceiptValidator(service: .production, sharedSecret: "xxxxxxxxxxxx")
    SwiftyStoreKit.verifyReceipt(using: appleValidator, forceRefresh: true) { result in
        switch result {
        case .success(let receipt):
            print("success: \(receipt)")
        case .error(let error):
            print("Verify receipt failed: \(error)")
        }
    }

To make sure app is paid and iap not hacked ?

Also inside the success block i should open the app premium features , while inside failure i should lock them ?

ShKhan9 avatar Mar 08 '22 12:03 ShKhan9