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 :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UDP;
public class UDPManager : MonoBehaviour, IInitListener
{
void Awake()
{
StoreService.Initialize(this);
}
public void OnInitialized(UserInfo userInfo)
{
Debug.Log("Initialization succeeded");
// You can call the QueryInventory method here
// to check whether there are purchases that haven’t be consumed.
}
public void OnInitializeFailed(string message)
{
Debug.Log("Initialization failed: " + message);
}
}
The other is :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UDP;
public class InitListener : IInitListener
{
public void OnInitialized(UserInfo userInfo)
{
Debug.Log("Initialization succeeded");
// You can call the QueryInventory method here
// to check whether there are purchases that haven’t been consumed.
}
public void OnInitializeFailed(string message)
{
Debug.Log("Initialization failed: " + message);
}
}
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?