diff --git a/ios/RNIapIosSk2.swift b/ios/RNIapIosSk2.swift index 15003f891..b252ba774 100644 --- a/ios/RNIapIosSk2.swift +++ b/ios/RNIapIosSk2.swift @@ -918,6 +918,11 @@ class RNIapIosSk2iOS15: Sk2Delegate { resolve(nil) } catch { reject(IapErrors.E_SYNC_ERROR.rawValue, "Error synchronizing with the AppStore", error) + if "\(error)" == "userCancelled" { + reject( IapErrors.E_USER_CANCELLED.rawValue, "User cancelled synchronizing with the AppStore", error) + } else { + reject( IapErrors.E_SYNC_ERROR.rawValue, "Error synchronizing with the AppStore", error) + } } } }