Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Help Wanted No UDP initialized

Discussion in 'Unity Distribution Portal (UDP)' started by Kyrilla, Oct 31, 2020.

  1. Kyrilla

    Kyrilla

    Joined:
    Jul 31, 2020
    Posts:
    2
    Hello ,
    I am having problems with initializing UDP. I need to post my app on the unity distribution platform so i would get SHA256 and get my huawei ads working . But i am having issues initializing it. I have two scripts on my unity.
    One is :
    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4. using UnityEngine.UDP;
    5.  
    6. public class UDPManager : MonoBehaviour, IInitListener
    7. {
    8.     void Awake()
    9.     {
    10.         StoreService.Initialize(this);
    11.     }
    12.     public void OnInitialized(UserInfo userInfo)
    13.     {
    14.         Debug.Log("Initialization succeeded");
    15.         // You can call the QueryInventory method here
    16.         // to check whether there are purchases that haven’t be consumed.
    17.     }
    18.  
    19.     public void OnInitializeFailed(string message)
    20.     {
    21.         Debug.Log("Initialization failed: " + message);
    22.     }
    23. }
    The other is :
    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4. using UnityEngine.UDP;
    5.  
    6. public class InitListener : IInitListener
    7. {
    8.     public void OnInitialized(UserInfo userInfo)
    9.     {
    10.  
    11.         Debug.Log("Initialization succeeded");
    12.         // You can call the QueryInventory method here
    13.         // to check whether there are purchases that haven’t been consumed.      
    14.     }
    15.  
    16.     public void OnInitializeFailed(string message)
    17.     {
    18.         Debug.Log("Initialization failed: " + message);
    19.     }
    20. }
    When i run the game in unity , i get a comment "Initialization succeeded" but when i try to upload the APK to unity distribution platform i get a warning :
    It seems your game was never tested in the UDP Sandbox environment, as no UDP Initialization call was found on the UDP back-end. Launch your APK in the UDP Sandbox environment to ensure it initializes properly. You must complete this step to release your game. If you face difficulties with the UDP SDK's initialization method, please refer to the UDP documentation or contact UDP Support.
    I test my game on my phone or on a android emulator.
    I tried everything for days i can't seem to fix this issue . And i want to fix it so i could add my app to the huawei platform.
    Is there something that i am doing wrong?
     
  2. Kyrilla

    Kyrilla

    Joined:
    Jul 31, 2020
    Posts:
    2
  3. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    388
    Please try to run this APK on a device. After initializing UDP, please log in with the sandbox test account you configured. Once the login is successful, then you have passed the test and you can upload the APK.
     
  4. Gaming_Solutions

    Gaming_Solutions

    Joined:
    May 16, 2019
    Posts:
    1
    I am also getting the same problem. No popup appears in game for sandbox login as they showed in their demo. Due to which UDP initialisation warning we are facing and not able to submit game to UDP.
    Please help us that what's the step we are missing
     
  5. unityfreeman

    unityfreeman

    Joined:
    May 21, 2019
    Posts:
    8
    I login success, but UDP still not detected.
     
  6. sharatchandra_unity

    sharatchandra_unity

    Unity Technologies

    Joined:
    Jan 21, 2019
    Posts:
    12
    Is it possible to share Logcat and also game details [name and ID] on the same issue?
     
unityunity