How to handle non-consumables after purchase complete

Hi, Hopefully this is not a “stupid” question and can help others (including myself) as they tread the IAP waters. I have 4 demo non-consumables in a demo app. Presently testing on Android but will get it working on iOS soon.

Windows 10
Unity 2018.3.3f1
IAP Version 1.22.0

non-consumables included in this demo

  1. No-Ads
  2. Full Access + No-Ads (Includes 1, 3, 4)
  3. Test Package1
  4. Test Package2

I am using Codeless IAP and have not implemented IStoreListener within my IAPMgr class. Created two methods within my IAPMgr.cs file, called BuyComplete and BuyFailed within BuyComplete I am passing the product.definition.id to another method which takes the appropriate action. i.e. stopping/hiding adds, unlocking everything, making the appropriate UI changes as needed.

OK. now the question. What is the best practice for keeping record on the client side that the person made the non-consumable purchase, so when they run the app again, those purchased non-consumables items will be there?

I have yet to find a clear answer on this along with how to handle app re-install.

Thanks for the help,

Chris

The easiest solution is to save to PlayerPrefs. Many studios choose to save user purchases to a cloud server.

Thanks Jeff. Is there not a way to query the appropriate store to get a list of non-consumable purchases in realtime? I would like to use PlayerPrefs as a no internet backup. Thanks again. Chris