Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

IAP stopped working. Null reference in IAPManager

Discussion in 'Unity IAP' started by HappyAdmission, Nov 24, 2020.

  1. HappyAdmission

    HappyAdmission

    Joined:
    Aug 5, 2018
    Posts:
    5
    In App Purchasing used to work in ios sandbox. I don't know what changed.

    When I click the purchase button nothing happens and the log shows

    NullReferenceException: Object reference not set to an instance of an object.

    at IAPManager.ProcessPurchase (UnityEngine.Purchasing.PurchaseEventArgs args)

    Any idea what is null in the IAPManager?

    edit: making a new ios sandbox account fixed the issue.
     
    Last edited: Nov 25, 2020
    JeffDUnity3D likes this.
  2. HappyAdmission

    HappyAdmission

    Joined:
    Aug 5, 2018
    Posts:
    5
    Purchasing still works on Google Play without issue. The issue is only on iOS.
     
  3. The-Gabo

    The-Gabo

    Joined:
    Feb 25, 2013
    Posts:
    10
    got the same issue here.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please show the code that is throwing the error, this is an older post. Please describe your issue with steps to reproduce. Be sure to be using IAP 4.1.4 or higher