IStoreListener Purchase vs Restore on Android and iOS
Hello
I'm wondering how can I delegate between fresh new purchase or automated restore?
With iOS its easy, it doesn't do restore automatically, so you have to click restore and I'm able to capture that event.
However for Android according to the official documentation:
On platforms that support it (e.g. Google Play and Universal Windows Applications) Unity IAP automatically restores any products the user owns during the first initialization following reinstallation; the ProcessPurchase method of your IStoreListener will be called for each owned item.
So when google kick off automated restore it falls into the same function ProcessPurchase
and follows the same routine as a brand new purchase.
Also if iOS user already purchased product and pressed "Buy" AppStore will tell that "you already own the product, would you like to restore?" and such restore will also look like legit purchase
Any idea of how I can determine which one is automated restore and which one is brand new purchase?
(bump)
Best Regards Vadim Bryksin
Your answer
Follow this Question
Related Questions
Unity Services In-App Purchases: How to check if a user has bought a non-consumable product 4 Answers
Split two 360 Panorama (in android / iOS) 0 Answers
Monetization breaks iOS build in XCode. Also breaks Android build. 1 Answer
Unity 5.3.1: Baked scene crashes Editor on Mac 4 Answers
MetaData and iOS Build is huge, sprites not loading correctly on iOS 1 Answer