Search Unity

Google Play IAP button just not working, but no errors, no reason I can see

Discussion in 'Unity IAP' started by grog3, Jan 11, 2019.

  1. grog3

    grog3

    Joined:
    Feb 22, 2016
    Posts:
    8
    It sucks to write this as I don't have anything to go on, therefore no hints to share.

    The game is a visual novel with a single buy button on a canvas. It is running the Fungus visual story package and almost nothing else. I've built these before, and they always worked, they still work.

    In the test mode in the editor, I get no errors or warnings. It executes the Completed Purchase function exactly as it should.

    But now, when I go to run it through an internal, closed or open track, the button clicks, but it just does not bring up the payment portal. I have tried with license testers and not.

    I am baffled. Would be happy to add someone to the test group. Is this happening to anyone? Is it something simple in the IAP store window or build settings?

    Thanks
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    3,685
    Please provide the results of your debugging on the device. You can step debug on the device from Visual Studio. But probably easier, provide the device logs. Debug.Log statements will show in the logs There is a working sample project available also https://forum.unity.com/threads/how-to-capturing-device-logs-on-android.528680/ and https://forum.unity.com/threads/sample-iap-project.529555/ . Also make sure to follow the steps here: https://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html
     
  3. grog3

    grog3

    Joined:
    Feb 22, 2016
    Posts:
    8
    Hey thanks for the reply, I'm testing something, forgot that I ran into some weird errors when I updated to the latest IAP and it was easiest to solve by letting the game run a few frames upon return to let the button set back to inactive. That's the only difference so I'll chase it for a bit, but thanks for the quick reply Jeff.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    3,685
    If you are using Codeless IAP, keep in mind that you likely will need a Listener. Codeless IAP only works when the buttons are active. The second sample project uses Codeless.
     
  5. grog3

    grog3

    Joined:
    Feb 22, 2016
    Posts:
    8
    Cool, thanks for the hint, didn't know that. -g