Search Unity

2 IAP initialization in same scene..possible?

Discussion in 'Unity IAP' started by domdev, Mar 19, 2018.

  1. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    I have 2 initialization in same.. because the 2nd was base from schedule or day.. it that okay? cause right now it was working in my device during test.. but got Unavailable product our tracking.. possible reason?
     
  2. Benvictus

    Benvictus

    Joined:
    Sep 12, 2013
    Posts:
    87
    Hi @domdev

    So I understand correctly; you are initializing twice via your code?

    Are they identical initializations? Do they pass in the same ConfigurationBuilder?

    Could you be initializing with a ConfigurationBuilder that has less or a different set of products to those you need?
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    @domdev You only want to initialize IAP once in your game.
     
  4. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    thanks for reply..yes.. it seems 2 initialization cause problem now I put it in 1 builder.. its okay now..
     
    Benvictus likes this.