Search Unity

[Solved] IAP Button - Display Problem

Discussion in 'Unity IAP' started by jsaade, Jan 3, 2017.

Thread Status:
Not open for further replies.
  1. jsaade

    jsaade

    Joined:
    Nov 29, 2013
    Posts:
    11
    I followed the tutorial and created some IAP buttons in a store page.

    The issue I am having is that on the device (Android), the first time the store page is opened, the Price does not show.
    The user has to close the page and re-open it and then it works.
     
  2. jsaade

    jsaade

    Joined:
    Nov 29, 2013
    Posts:
    11
    Alright so codeless IAP class has a bug (not sure how it escaped QA).

    Basically the Text is being assigned in OnEnable and most of the time Unity Purchasing has not been initialized yet!

    I added a flag in "IAPButtonStoreManager" to know when it is initialized.
    Then added a coroutine in OnEnable to wait for the flag before assigning the text.

    Hope it helps other people
     
  3. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @jsaade

    Thanks for bringing this to our attention. We're going to take a look and I'll let you know what we find.

    Edit: This issue was resolved in an updated version of the IAP plugin.
     
    Last edited: Mar 14, 2017
Thread Status:
Not open for further replies.