dimanche 12 juin 2016

Unity IAP not initializing


I used the Unity "Purchaser script"(In Unity's IAP example) to test IAP's but they do not initialize on the phone during testing even though they do initialize and pass in the editor. I understand the Unity Editor always passes IAPs so that means I did not do a step somewhere on the Apple side. iTunes connect states that IAPs must be submitted with the app update so I do not see how I could individually create the IAP on iTunes Connect for testing. Can someone please help me understand where I go from here to be able to initialize and use the IAPs? All help is extremely appreciated.

NOTE: this is an update to an app which DOES NOT contain IAPs. Also, I have made SURE that my Product ID matched the one in my script.

xcode error:

2016-06-05 12:53:18.837 MyAppName[715:280364]      

 UnityIAP:addTransactionObserver
 BuyProductID FAIL. Not initialized.
 Purchaser:BuyProductID(String)
 UnityEngine.Events.InvokableCallList:Invoke(Object[])
 UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject,        BaseEventData, EventFunction`1)
 UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
  UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents()
  UnityEngine.EventSystems.StandaloneInputModule:Process()

Summary:

  1. IAPs work in unity editor, not on iPhone
  2. I created the IAP on itunes connect and it has a matching Product ID as the one in my script, which is the Unity-provided "Purchaser Script" (Shown here: https://unity3d.com/learn/tutorials/topics/analytics/integrating-unity-iap-your-game)
  3. Error is on initialization of the purchase, it is failing.

Aucun commentaire:

Enregistrer un commentaire