Search Unity

IAP game not even startin on android

Discussion in 'Unity IAP' started by The-Gravity, Dec 22, 2018.

  1. The-Gravity

    The-Gravity

    Joined:
    Dec 14, 2014
    Posts:
    2
    So I'm trying to implement IAP for an android game. Before the implementation, I was able to run the game both in the editor and on my phone. After I implemented IAPs, the game runs fine in the editor, but it doesn't even start the game on my android device.
    The code I'm using is essentially identical to the code found on this tutorial: https://unity3d.com/learn/tutorials/topics/ads-analytics/integrating-unity-iap-your-game
    I have also set up all the consumables in google play and set them to active. As far as I'm concerned I have followed all the steps, but still the game refuses to work on android.

    If I posted this question correctly, my code should be below. There are no other scripts that are used for IAPs and the functions such as PurchaseCASH_10_000 are all called from buttons within the game.
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  3. The-Gravity

    The-Gravity

    Joined:
    Dec 14, 2014
    Posts:
    2
    Thanks for the reply.
    I actually managed to solve the problem by reverting to a backup of the game without IAP and then redoing every single step. Having periods in the names seems to work.