1

这是我在初始化后打印时的日志(purchaserInfo.toString())

我想这可能是我尝试展示产品时看不到任何产品的原因

D/[Purchases] - DEBUG(12538): Debug logging enabled.
D/[Purchases] - DEBUG(12538): SDK Version - 3.2.0
D/[Purchases] - DEBUG(12538): Initial App User ID - null
D/[Purchases] - DEBUG(12538): Identifying App User ID: aswq4Sdfaewradfgasfw
D/[Purchases] - DEBUG(12538): Deleting old synced subscriber attributes that don't belong to aswq4Sdfaewradfgasfw.
D/[Purchases] - DEBUG(12538): App foregrounded
D/[Purchases] - DEBUG(12538): PurchaserInfo cache is stale, updating caches
D/[Purchases] - DEBUG(12538): Offerings cache is stale, updating caches
D/[Purchases] - DEBUG(12538): [QueryPurchases] Skipping updating pending purchase queue since BillingClient is not connected yet
D/[Purchases] - DEBUG(12538): No subscriber attributes to synchronize.
D/[Purchases] - DEBUG(12538): Listener set
D/[Purchases] - DEBUG(12538): Sending latest purchaser info to listener
D/[Purchases] - DEBUG(12538): Starting connection for com.android.billingclient.api.BillingClientImpl@f8168e4
D/[Purchases] - DEBUG(12538): Vending purchaserInfo from cache
D/[Purchases] - DEBUG(12538): Vending purchaserInfo from cache
D/NetworkSecurityConfig(12538): No Network Security Config specified, using platform default
D/[Purchases] - DEBUG(12538): Billing Service Setup finished for com.android.billingclient.api.BillingClientImpl@f8168e4.
D/[Purchases] - DEBUG(12538): [QueryPurchases] Updating pending purchase queue
I/flutter (12538): PurchaserInfo{entitlements: EntitlementInfos{all: {}, active: {}}, latestExpirationDate: null, allExpirationDates: {}, allPurchaseDates: {}, activeSubscriptions: [], allPurchasedProductIdentifiers: [], firstSeen: 2020-07-06T03:12:21.000Z, originalAppUserId: aswq4Sdfaewradfgasfw, requestDate: 2020-07-07T00:29:14.000Z, originalApplicationVersion: null, originalPurchaseDate: null, managementURL: null}

这是在 Android 上运行,使用:purchasing_flutter: ^1.1.1

4

0 回答 0