Quantcast
Channel: Questions in topic: "iap"
Viewing all articles
Browse latest Browse all 595

Unity IAP : Receipt by user IOS/Android

$
0
0
Hello, I'm using Unity IAP for Android and iOS subscription. Everything is on both plateform, I can subscribe by buying the product with an account and I can get the receipt info (purchase date, etc..) after buying it. The problem is when I log out from my Apple account for example : I close the app, log out from Apple App Store (I'm now disconnected) and re-open the app -> when I check products receipts on OnInitialized() after UnityPurchasing.Initialize(this, builder); I can get the old receipt even if I logged out. If I can found a product receipt, it means that the user is Subscribed, but it's wrong. The user that is subscribed is the one who logged out from the store, not a new one or no one. I was wondering, how could I check if the user who buys the sub product is the one who is logged in ? I need to link the user who buys the product to the product receipt -> I guess the user is linked to the product he owns, so if there is a new user who logs in, I don't want old receipt to be in receipt list. I hope I have been clear, thank you in advance if you can help! If there is a way to know from Unity if a user is logged to the store, it would be perfect.

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>