[ad_1]
I’ve one non-consumable IAP in iOS app (premium replace) at present buy advert restore are carried out with out receipt verification , i come alongside some articles that say that an IAP could be hacked in a jailbroken gadgets ,and that i must keep away from this situation so
1- Ought to I name this confirm technique each time the consumer opens the app SwiftyStoreKit
let appleValidator = AppleReceiptValidator(service: .manufacturing, sharedSecret: "xxxxxxxxxxxx")
SwiftyStoreKit.verifyReceipt(utilizing: appleValidator, forceRefresh: true) { end in
change outcome {
case .success(let receipt):
print("success: (receipt)")
case .error(let error):
print("Confirm receipt failed: (error)")
}
}
To ensure app is really paid and IAP not hacked ?
2- Additionally contained in the success block i ought to open the app premium options , whereas inside failure i ought to lock them ?
[ad_2]
