Within a local Xcode testing environment we sometimes run in to the following error (which is received from RevenueCat):
Error Domain=RCBackendErrorDomain Code=7638 "There is another request in flight trying to perform the same action."
This is the error that we receive back when we try and make a purchase (within the following code block):
func purchase(package: Package, completion: @escaping (InAppPurchaseResult) -> Void) {
purchasePackage(package) { _, purchaserInfo, error, userCanceled in
if userCanceled {
completion(.userCancelled)
} else if let error = error {
completion(.failure(error))
print(error)
print(error.localizedDescription)
} else if purchaserInfo?.entitlements.all["unlocked"]?.isActive == true {
completion(.success)
} else {
// According to RevenueCat doc it should never happen
}
}
}
Even though we receive the error, the purchase goes through successfully.
The more testing we do, the more we feel that this may be a result of errors in a local Sandbox testing environment. But it would be great to hear if anyone has faced a similar issue and why it exists.
We don’t know if this exist in production code (as we haven’t released it yet)!
Thanks so much