反应本机InAppUtils.receiptData问题

时间:2019-12-20 12:30:08

标签: ios react-native in-app-purchase

我在我的react-native应用程序中使用react-native-in-app-utils(6.0.2)组件。升级了许多组件和库之后,我无法使用 InAppUtils.receiptData()函数获取用户的receiveData。在升级之前,它可以正常工作。

运行后

InAppUtils.receiptData((error, receiptData)=> {
  if(error) {
    Alert.alert('itunes Error', 'Receipt not found.');
  } else {
    // receiptData is undefined/empty and I'am therefore unable to verify the receipe with the users iTunes-account.
  }
});

receiptData是未定义/为空,因此我无法使用用户的iTunes帐户来验证收据。

在尝试获取收据之前,我先运行 InAppUtils.loadProducts(..),效果很好,然后我获取了所有产品。

有什么建议吗?

0 个答案:

没有答案
相关问题