Search Unity

Checking Purchases for Promotions Play Store

Discussion in 'Unity IAP' started by Blaze5565, Feb 5, 2019.

  1. Blaze5565

    Blaze5565

    Joined:
    Sep 11, 2018
    Posts:
    11
    Hi,

    So, I was looking at the Google Play Console promotions tab, and from what I can gather, it says your app needs to check if anything has been purchased whenever the app resumes to be allowed to support promotions. I know to use the OnApplicationPause function, but I'm not too sure what code to use to get that to work. My purchaser script, for reference, is essentially identical to the one provided here:
    https://unity3d.com/learn/tutorials/topics/ads-analytics/integrating-unity-iap-your-game
    Specifically, I'm trying to check if a remove ads consumable purchase has been made, if that helps.

    Any help would be much appreciated.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, IAP will process would process all purchases correctly. The ProcessPurchase callback method would be expected to fire, please test. If a purchase was made previously, you would need to track that purchase by saving the information either on the device, like in PlayerPrefs, or in the cloud.