-
Notifications
You must be signed in to change notification settings - Fork 30.4k
[iOS] purchaseStream returns outdated purchases even after clearing account + appAccountToken stays the same #169744
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.32Found to occur in 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: in_app_purchasePlugin for in-app purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.32Found to occur in 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: in_app_purchasePlugin for in-app purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Type
Projects
Status
To triage
Hi, I'm facing two possibly related issues using in_app_purchase on iOS (Sandbox environment). This affects our production logic that relies on transaction tokens.
Issue 1: purchaseStream returns old purchase, even after clearing purchases
After calling buyNonConsumable() with a new product ID purchaseStream still returns the previous purchase.
This happens even after clearing all purchases from the Sandbox test account settings.
log example (invoiceToken for applicationUserName)
Expected
Each call to buyNonConsumable() should result in a fresh purchase returned by the stream.
Issue 2: appAccountToken / appTransactionId remains the same across multiple distinct purchases
On the server, even when a new appAccountToken is passed from the client for each purchase (UUID), Apple keeps returning the same appTransactionId.
This breaks our backend logic which relies on this being a unique transaction identifier.
Environment
in_app_purchase 3.2.3
iOS Sandbox account
Purchase method: buyNonConsumable()
Each purchase uses a unique applicationUserName / appAccountToken (UUID)
Thanks for your help!