Hello,
The steps I perform:
1. Create a new user (the user appears in RevenueCat Dashboard).
2. Grant entitlement to the user in the Dashboard.
3. Run Purchases.restorePurchases() in the app (Flutter)
4. Then Purchases.getCustomerInfo()
The steps work perfectly in iOS: the customer info contains the entitlement.
They doesn’t work on Android though. restorePurchase does not seem to account for the promo account given in the Dashboard:
D/[Purchases] - DEBUG( 5926): ℹ️ Restoring purchases
W/[Purchases] - WARN( 5926): ⚠️ allowSharingPlayStoreAccount is set to false and restorePurchases has been called. This will 'alias' any app user id's sharing the same receipt. Are you sure you want to do this? More info here: https://errors.rev.cat/allowsSharingPlayStoreAccount
D/[Purchases] - DEBUG( 5926): ℹ️ Querying purchase history for type subs
E/libEGL ( 5926): called unimplemented OpenGL ES API
D/EGL_emulation( 5926): app_time_stats: avg=1898.39ms min=4.90ms max=16965.74ms count=9
D/[Purchases] - DEBUG( 5926): ℹ️ Purchase history is empty.
D/[Purchases] - DEBUG( 5926): ℹ️ Querying purchase history for type inapp
D/[Purchases] - DEBUG( 5926): ℹ️ Purchase history is empty.
D/[Purchases] - DEBUG( 5926): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG( 5926): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG( 5926): ℹ️ Checking if cache is stale AppInBackground false
D/[Purchases] - DEBUG( 5926): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG( 5926): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG( 5926): ℹ️ Checking if cache is stale AppInBackground false
purchases_flutter: 8.8.1
purchases_ui_flutter: 8.8.1
Android SDK: 35
The behaviour is the same in the emulator and in a real device.
Is this expected?
Thanks.