android separated

This commit is contained in:
feruz 2021-08-07 10:03:27 +03:00
parent acac37d02e
commit d115a1dab9

View File

@ -28,7 +28,9 @@ class InAppPurchaseContainer extends Component {
async componentDidMount() {
try {
await RNIap.initConnection();
if (Platform.OS === 'android') {
await RNIap.flushFailedPurchasesCachedAsPendingAndroid();
}
} catch (err) {
bugsnagInstance.notify(err);
console.warn(err.code, err.message);