[Solved] How do products get automatically restored?

The documentation says that “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.”

I have implemented the IAP codes on my store page, but I am not sure if a user reinstalls the app, without going to the store page, how does Unity restore the products so that the correct games are unlocked? On the menu screen, the app should already be able to tell which products the user has purchased. Do I have to include the IAP codes on the menu screen to do that?

Hi.
You don’t have to attach your IAP codes on store page. You can attach it on any GameObject.
We have a “IAP Demo” scene in Plugins/UnityPurchasing/scenes. In this demo, we attached IAPDemo.cs on UnityIAP object. So once the scene is loaded, Unity IAP is initialized. And then you’ll get all information you need.