Search Unity

Bug UDP sandbox login window not showing

Discussion in 'Unity Distribution Portal (UDP)' started by kaviweera, Jul 28, 2021.

  1. kaviweera

    kaviweera

    Joined:
    Oct 31, 2020
    Posts:
    2
    Please help!!!

    UDP sandbox login window not showing on simulator or android devices. I tried several devices.

    /////////////////////////////////////////////////////////////

    using UnityEngine;
    using UnityEngine.UDP;
    public class udp : MonoBehaviour
    {
    IInitListener listener = new InitListener();
    public void Start()
    {
    StoreService.Initialize(listener);
    }
    }

    ////////////////////////////////////////////////////////////////

    using UnityEngine;
    using UnityEngine.UDP;
    public class InitListener : IInitListener
    {
    public void OnInitialized(UserInfo userInfo)
    {
    Debug.Log("Initialization succeeded");
    }
    public void OnInitializeFailed(string message)
    {
    Debug.Log("Initialization failed: " + message);
    }
    }

    ////////////////////////////////////////////////////////////////////////////


    Please help me to solve this problem.

    Thank you.
     
  2. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    Here are a few things you can check,

    1. Make sure you have downloaded UDP Package from the package manager.
    2. If you are using Proguard, please make sure you have added the following filter in the Proguard file.

    -keep class com.unity.udp.** { *; }


    If it is still not working, please send us the log for some investigation.
     
    kaviweera likes this.
  3. kaviweera

    kaviweera

    Joined:
    Oct 31, 2020
    Posts:
    2
    I found the solution. Just select " window > unity IAP > switch store > unity distribution portal "
     
    Serve, msafa160754 and Unity-Boon like this.