From d115a1dab9701021aa54108a71a846447351edb2 Mon Sep 17 00:00:00 2001 From: feruz Date: Sat, 7 Aug 2021 10:03:27 +0300 Subject: [PATCH] android separated --- src/containers/inAppPurchaseContainer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/containers/inAppPurchaseContainer.js b/src/containers/inAppPurchaseContainer.js index 510f83342..1c8e8430f 100644 --- a/src/containers/inAppPurchaseContainer.js +++ b/src/containers/inAppPurchaseContainer.js @@ -28,7 +28,9 @@ class InAppPurchaseContainer extends Component { async componentDidMount() { try { await RNIap.initConnection(); - await RNIap.flushFailedPurchasesCachedAsPendingAndroid(); + if (Platform.OS === 'android') { + await RNIap.flushFailedPurchasesCachedAsPendingAndroid(); + } } catch (err) { bugsnagInstance.notify(err); console.warn(err.code, err.message);