Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Do i need to remove the UDP initialization code when releasing?

Discussion in 'Unity Distribution Portal (UDP)' started by Max_power1965, Apr 21, 2023.

  1. Max_power1965

    Max_power1965

    Joined:
    Oct 31, 2013
    Posts:
    127
    I have the following code
    Code (CSharp):
    1.       #if UNITY_ANDROID
    2.         IInitListener listener = new UDPInitiListener();
    3.         StoreService.Initialize(listener);
    4.         #endif
    Which I have used to initialize and test the iAP with my sandbox account successfully.
    Should I remove the code when officially releasing the game on UDP platforms such as HUAWEI? I was worried that everyone would be prompted to enter the sandbox account with the popup at the opening of the game. Am I wrong?
     
    RuNTTechSolutions likes this.
  2. RuNTTechSolutions

    RuNTTechSolutions

    Joined:
    Apr 24, 2023
    Posts:
    2
    I have the same Question, I was hoping to get answers from this post
     
  3. Janette5

    Janette5

    Joined:
    Dec 14, 2020
    Posts:
    22
    The code must stay.

    It is replaced by the store-specific code during the repack process.