Search Unity

[Solved] A question about Google Play IAP restoring

Discussion in 'Unity IAP' started by olivier-grech, Jan 24, 2017.

Thread Status:
Not open for further replies.
  1. olivier-grech

    olivier-grech

    Joined:
    Jan 10, 2017
    Posts:
    3
    I understand that IAP restoring on Google Play is automatic.
    But I have a question about this sentence:
    (found here: https://docs.unity3d.com/Manual/UnityIAPRestoringTransactions.html)

    The ProcessPurchase method will be called as soon as the game is launched, correct? Does this means that I should set a reference to each object used by the ProcessPurchase method before the game starts (with the Awake method for exemple)?
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @olivier-grech,

    ProcessPurchase will be called after the store is initialized. So yes, it would be recommended to have all of your references in place necessary for ProcessPurchase to succeed.
     
Thread Status:
Not open for further replies.