我已在 Flutter 中正确安装 RevenueCat 并连接 Play 商店。我仍然收到这些错误。
有人遇到过这个问题吗?你解决了吗?
这是我收到的错误。
API request started: GET /subscribers/appUserID/offerings
D/[Purchases] - DEBUG(11357): API request completed with status: GET /subscribers/appUserID/offerings 304
D/[Purchases] - DEBUG(11357): ℹ️ Requesting products from the store with identifiers: plus_3_card_slots
W/BillingClient(11357): getSkuDetails() failed for queryProductDetailsAsync. Response code: 2
E/[Purchases] - ERROR(11357): 🤖‼️ Error when fetching products DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE.
E/[Purchases] - ERROR(11357): 🤖‼️ PurchasesError(code=StoreProblemError, underlyingErrorMessage=Error when fetching products. DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE., message='There was a problem with the store.')
E/[Purchases] - ERROR(11357): 🤖‼️ Error fetching offerings - PurchasesError(code=StoreProblemError, underlyingErrorMessage=Error when fetching products. DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE., message='There was a problem with the store.')
<uses-permission android:name="com.android.vending.BILLING"/>
为了解决这个问题,我做了 3 个步骤:
检查测试设备是否有 PIN。 检查测试设备是否已登录 Google Play 商店。 在 Google Play 上安装内部测试的应用程序,然后进行测试购买。然后就开始工作了。
仅此而已。