Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

IAP purchase issue when android back button is pressed

Discussion in 'Unity IAP' started by rakshithjuego, Aug 6, 2019.

  1. rakshithjuego

    rakshithjuego

    Joined:
    May 13, 2019
    Posts:
    3
    If We call "m_StoreController.InitiatePurchase(product)" immediately after initialisation we are facing issue.
    Issue is->when we press android back button after calling "m_StoreController.InitiatePurchase(product)" iap controller will not sends any response even if purchase is success or failure.
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,197
    @rakshithjuego

    Would you be able to provide a few more details about this issue?
    * When are you initializing the Purchasing system? We recommend you do so as soon as possible, i.e. immediately at app start.
    * How soon after you initialize is the purchase happening? We would strongly recommend you only initiate a purchase when the user performs an action.
    * Does the dialog pop up when you initiate the purchase?
    * Could you provide a device log from when this happens?