I have implemented Unity 5's IAP system through Google Play. I read a few guides that mention not to store completed purchases in PlayerPrefs
because it is clear text and easy to hack, but none mention the correct way to "remember" purchases. For example, when re-installing an Anroid app, purchases are restored the first time the app runs by individual calls to this method defined in the Unity IAP API.
public PurchaseProcessingResult ProcessPurchase (PurchaseEventArgs e)
{
//my Playerpref save that I want to avoid is here.
return PurchaseProcessingResult.Complete;
}
On subsuqent app runs, this method is not called again. Is there a way to query past purchases other than saving them in PlayerPrefs
?