As the title suggests, I am having trouble purchasing a non-renewable product on my app.
Here is an overview of my current setup:
- Flutter app (with products that can be purchased via app store or play store)
- Web app (with the same products that can be purchased via Stripe)
- Server (acts as the backend, is used for authenticating users on login)
The non-renewable product is specific to each user. In other words, if user A logs on to the app and purchases the product, then any privileges associated with that non-renewable product will be granted to user A. Then, if user A logs out of their account and user B logs on to the app using their own account on the same device, user B should not have access to those privileges.
In order to test the scenario mentioned above on my Flutter app, these are the steps I took:
- Log on to app using account A
- Purchase non-renewable product
- Verify that privileges are granted
- Log out of app
- Log on to app using account B
- Purchase non-renewable product
- Verify that privileges are granted
However, when I try to purchase the product (step 6), I get the following error:
There is already another active subscriber using the same receipt.
Other bits of info that might be useful:
- The app user ID is set when a user logs in, and is unset when the user logs out of the app.
- The app user ID is tied to the user’s account (it is set to the account’s unique ID)
Attached below are logs of me logging out of account A and then logging on with account B (log0.txt)
and logs of me attempting to purchase the non-renewable product with account B (log1.txt)
Thanks!
Edit: To clarify, this error only occurs on iOS, and not Android