Solved

 allowSharingPlayStoreAccount

  • 24 January 2022
  • 7 replies
  • 362 views

Userlevel 1
Badge +6

 Hey, 

 

Just got the following warning while debugging restore purchase method: 

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?

 

Just wondering what the allowSharingPlayStoreAccount is and if we need to do anything with it? Doesn’t seem to be any mention on the restore purchases docs page. 

 

cheers

 

James 

icon

Best answer by tina 24 January 2022, 19:35

View original

7 replies

Userlevel 5
Badge +10

Hi @Golfify 

This was an old behavior in the SDK, which you can see in v3.1 of the docs: https://docs.revenuecat.com/v3.1/docs/configuring-sdk#android Copying for convenience: 

When TRUE, if a new user tries to purchase a product that is already active on the current Play Store account, this will treat it as a restore and alias the App User Ids together. Defaults to TRUE if the current App User Id is anonymous, and FALSE if you've provided an App User Id.

It sounds like you’re on an older version of the Purchases SDK, I recommend updating to the latest release. 

Badge +2

Hello, I have the same error in purchases_flutter 3.9.3 

 ⚠️ 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
I/[Purchases] - INFO(  679): 😻💰 Purchase history retrieved skus: …

 

 

Badge +3

The error message shows up on purchases_flutter 3.9.4 as well

Badge +1

I confirm as well I see the same warning with purchases_flutter 3.9.4.

Badge

I am also facing the same error in purchases_flutter 3.9.4 

I’ve specified my purchases_flutter version as ^5.0.0 and I saw this warning today. An updated version of purchases_flutter does not solve the issue.

Message while running Flutter app on Android emulator:

W/[Purchases] - WARN( 6292): ! 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

This message links you to https://errors.rev.cat/allowsSharingPlayStoreAccount which currently redirects to https://www.revenuecat.com/v3.1/docs/configuring-sdk#android (where I only see a blank page).

Badge +1

I see the exact same warning with purchases_flutter version 6.21.1, which is the latest version to date. So I can’t figure out how to add a Restore button to my custom paywall.

Reply