In my game i have In App Purchase those are non-consumable i want restore those products.
But in unity’s default iap there is no function written for google play store but there is function for IOS
please help me out of this
In my game i have In App Purchase those are non-consumable i want restore those products.
But in unity’s default iap there is no function written for google play store but there is function for IOS
please help me out of this
Items restoration for Google Play is automatic. When reinstalling your app (or installing on another device), Unity IAP will automatically retrieve every purchased non-consumable and subscription items, and ProcessPurchase will be called for every restored item.
My observations on this are that the durable Google Play Store purchases are only restored when you load the “Purchaser” script e.g. you initialise the store controller. The restoration is automatic but you still need to load the unity IAP store script to get it to trigger.
So if you implement the Unity IAP Store code in a script, the durable purchases will only be restored if you load that script again.
In other words, if a user uninstalls and re-installs your app, they will need to visit your in-app purchases scene to have their durable purchases restored.
Alternatively you’d need to load the Unity store script on app start to make the process fully automatic.