ios - Revenuecat React-Native iPad Purchases.purchasePackage- promise 不会解决

标签 ios react-native testflight revenuecat

使用

"react": "16.9.0",
"react-native": "0.61.5",
"react-native-purchases": "^3.0.6",

我们在运行iOS 13.3.1上的testflight的11英寸iPad上遇到问题。所有模拟器都可以正常使用,并且在testflight上运行的iPhone和其他iPad也可以正常工作。

问题在于Purchases.purchasePackage返回的 promise 既没有解决也没有拒绝-它挂起了。通过本地的Obj-C代码进行组合后,我在文件Pods / Purchases / RCPurchases.m中找到了相关的代码。方法
- (void)purchaseProduct:(SKProduct *)product withPayment:(SKMutablePayment *)payment withPresentedOfferingIdentifier:(nullable NSString *)presentedOfferingIdentifier completion:(RCPurchaseCompletedBlock)completion

被调用,并且该行
[self.storeKitWrapper addPayment:[payment copy]];

被调用,但是回调方法
- (void)storeKitWrapper:(RCStoreKitWrapper *)storeKitWrapper
     updatedTransaction:(SKPaymentTransaction *)transaction

永远不会被调用。这可能是SKPaymentQueue的潜在问题吗?

谢谢!

最佳答案

原来我的iPad实际上使用的是旧版iOS。更新它可以解决问题。

关于ios - Revenuecat React-Native iPad Purchases.purchasePackage- promise 不会解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60181722/

相关文章:

ios - Swift:TableView Controller 和段值更改

javascript - 在 React Native Picker 中仅渲染唯一标签

ios - iPhone 应用程序 'Pending Developer Release' - 我现在可以提交试飞而不会有任何后果吗?

iphone - 曲棍球与测试飞行

ios - Xcode 11 beta 上找不到 iPhone 7 模拟器

ios - 无法将 'AppDelegate' 分配给 'UNUserNotificationCenterDelegate'

react-native - 使用react-navigation时redux状态不发送

android - 清除应用程序缓存后,如何设置Firebase以停止接收云消息?

ios - 应用程序性能问题