Solved

Flutter: getPurchaserInfo not updated after purchasing a subsrciption

  • 24 September 2021
  • 1 reply
  • 140 views

Badge +3

Hey guys!

First of all, I am a new customer of RevenueCat and I like it a lot! 

I upgraded my iPhone to iOS15 and since then I have slight problems with stuff which worked before.

When I buy the pro subscription plan in my paywall screen I can’t see the results in the rest of the app using getPurchaserInfo() unless I restart the app. It seems that RC is receiving the info from the cache and for whatever reason it is not cleared with the purchase. Here are the logs:

[Purchases] - DEBUG: ℹ️ Products request finished.
[Purchases] - DEBUG: 💰 Retrieved SKProducts:
[Purchases] - DEBUG: 💰 inv_v03_basis_199_1mo_7d - <SKProduct: 0x282bf4a20>
[Purchases] - DEBUG: ℹ️ 1 completion handlers waiting on products
[Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: baHJxaHGJdPe9GDjQmkgsxo4cbf2
[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /receipts
[Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
[Purchases] - DEBUG: ℹ️ API request completed with status: POST /v1/receipts 200
[Purchases] - DEBUG: ℹ️ Serial request done: POST /receipts, 0 requests left in the queue
[Purchases] - DEBUG: 💰 Finishing transaction inv_v03_basis_199_1mo_7d 1000000883077736 (1000000882861560)
[Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: inv_v03_basis_199_1mo_7d 1000000883077736 (1000000882861560 (null)) (null) - 1
[GETX] Instance "PurchasesService" has been created
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
2
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ Vending Offerings from cache
6
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ Vending Offerings from cache
[Purchases] - DEBUG: ℹ️ makePurchase
[Purchases] - DEBUG: 💰 Purchasing product from package - inv_v03_basis_199_1mo_7d in Offering default packages
[Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: inv_v03_basis_199_1mo_7d (null) ((null)) (null) - 0
3
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
[Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: inv_v03_basis_199_1mo_7d 1000000883081630 ((null)) 1000000882861560 - 1
[Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/6DB0440D-3CD6-4C20-8DAD-313CC646CA8E/StoreKit/sandboxReceipt
[Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: baHJxaHGJdPe9GDjQmkgsxo4cbf2
[Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /receipts
[Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
[Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
[Purchases] - DEBUG: ℹ️ API request completed with status: POST /v1/receipts 200
[Purchases] - DEBUG: ℹ️ Serial request done: POST /receipts, 0 requests left in the queue
[Purchases] - DEBUG: ℹ️ Sending updated PurchaserInfo to delegate.
[Purchases] - DEBUG: 💰 Finishing transaction inv_v03_basis_199_1mo_7d 1000000883081630 (1000000882861560)
3
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
[Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: inv_v03_basis_199_1mo_7d 1000000883081630 (1000000882861560 (null)) (null) - 1
2
[Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.

 

Can you please tell me what I am doing wrong?

THANKS!

icon

Best answer by Dominique 25 September 2021, 08:11

View original

This post has been closed for comments

1 reply

Badge +3

Ok I found the mistake. RC is doing everything fine. I limited some elements due to the purchasing plan and the limits are not adjusted properly, the purchase plan is.

Sorry for the confusion :D

Best regards!