Hello, we are getting a lot of reports of this “InvalidOperationException: To listen to deferred purchases, please register a listener via IGooglePlayStoreExtensions” in our unity dash.
Google.Play.Billing.GooglePlayStoreImpl.Purchase (UnityEngine.Purchasing.ProductDefinition product, System.String developerPayload) (at <00000000000000000000000000000000>:0)
UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product, System.String developerPayload) (at <00000000000000000000000000000000>:0)
UnityEngine.Events.UnityEvent.Invoke () (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule.Process () (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.StandaloneInputModule:Process()
We have recently implemented the google billing from Use the Google Play Billing Library with Unity | Google Play's billing system | Android Developers. I am aware this error is caused by not enabling deferred purchasing onInitialisation, which I am. I am also blocking users from attempting a purchase if the initialisation fails. Any ideas as too how I can handle this? Cheers.