Solved

Can two different users subscribe from the same device?

  • 23 July 2021
  • 8 replies
  • 137 views

Badge +1

Hi there.

Can two different users subscribe from the same device?

icon

Best answer by tina 24 July 2021, 01:07

View original

8 replies

Userlevel 3
Badge +8

Hi @sereisoglu!

Since the 2 app user IDs are using the same underlying app store account, RevenueCat will recognize that the receipt is already in use by another subscriber and throw this RECEIPT_ALREADY_IN_USE error

Copying the resolution for visibility:

The user will either need to log in as the App User Id that already owns the receipt or restore purchases to re-sync the receipt with their current account. We recommend checking out the 'Transfer purchases' restore behavior.

Badge +1

Hi @tina!

Thanks for your answer. I checked "Block restores" in RevenueCat settings. But I'm not getting an error in the test environment? Is this normal?

Userlevel 3
Badge +8

Hey @sereisoglu,

Are you restoring with RCAnonymousIDs? Two anonymous IDs should be aliased together.

Badge +1

Hey @tina,

I could not fully understand what you say. Users have both id(assigned by me) and RCAnonymousID.

Userlevel 3
Badge +8

Hi @sereisoglu,

Can you let me know your reproduction steps? e.g:

  1. Configured app with RCAnonymousID
  2. Logged in with custom ID
  3. Purchased
  4. Logged out
  5. Restore

Can you also double check your app settings if you saved your changes when selecting the block restore option?

Badge +1

Hey @tina

  1. ​​​Configured app with RCAnonymousID
  2. First user: log in
  3. First user: purchase
  4. First user: log out
  5. Second user: log in
  6. Second useer: restore (I’m not getting the error message you describe in this step.)

Yes, I checked. "Block restores" is checked.

 

Userlevel 3
Badge +8

Hi @sereisoglu,

I tried reproducing your steps in RevenueCat’s iOS sample app and I wasn’t able to reproduce your issue. I followed the same reproduction steps you described and when I tried restoring as the second logged in user, I received [Purchases] - ERROR: 😿‼️ There is already another active subscriber using the same receipt. 

 

Can you try testing on a fresh sandbox account? You can also try testing with the sample app yourself, you would just need to change the constants in this file.

Badge +1

Hi @tina!

I have a quick question regarding this. If it is not possible for two accounts to buy from the same device, how come I’m able to do the following:

  • Fresh install
  • Anonymous user 
  • Buys a subscription
  • User uninstalls the app
  • User reinstalls the app
  • Anonymous user
  • Buys the same subscription

I get no error at all. 

 

Thank you for your help in understanding this!

Reply