Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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:
    90
    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.