Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

unity 2018.2.16f1 iOS In App Purchase not triggered always

Discussion in 'Unity IAP' started by asteroidg10, Dec 19, 2018.

  1. asteroidg10

    asteroidg10

    Joined:
    Feb 3, 2017
    Posts:
    1
    Hi, there.

    I have encountered an issue with IAP for iOS when IAP sometimes is triggered and sometimes is not.
    A test case will be:
    IAP popup triggered, but didn't buy the product. Quit the game, start it again and when try to launch the IAP again then it's not triggered anymore.

    If i uninstall the game and try to log in with another user then works again. It's somehow working and stops working, then works again. Is there an issue in Unity IAP plugin ? Is Unity IAP plugin caching any declined iAP ? Could such issue be an AppStore issue ?

    Same code works perfect fine with Android, what can be the issue ?

    Logs captured on a released app are:
    BuyUnlockLevels() FAIL. Not initialized.
    IAPurchaser:BuyUnlockLevels(PurchaseProcessing)
    UnityEngine.Events.UnityEvent:Invoke()
    UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    UnityEngine.EventSystems.StandaloneInputModule:processTouchPress(PointerEventData, Boolean, Boolean)
    UnityEngine.EventSystems.StandaloneInputModule:processTouchEvents()
    UnityEngine.EventSystems.StandaloneInputModule:process()

    -----
    MUST BUY
    MainMenuController:<onClickLevel>m__F(Boolean)
    IAPurchaser:BuyUnlockLevels(PurchaseProcessing)
    UnityEngine.Events.UnityEvent:Invoke()
    UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    UnityEngine.EventSystems.StandaloneInputModule:processTouchPress(PointerEventData, Boolean, Boolean)
    UnityEngine.EventSystems.StandaloneInputModule:processTouchEvents()
    UnityEngine.EventSystems.StandaloneInputModule:process()

    Thanks.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you show the code that you are using? This is a log entry that you have created, and apparently shows that IAP is not initialized. Please provide the full logs and the code that you are using. We have not heard of this behavior.

    BuyUnlockLevels() FAIL. Not initialized.