Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Help Wanted Unity UDP and Unity IAP

Discussion in 'Unity Distribution Portal (UDP)' started by Pirakl, Oct 20, 2020.

  1. Pirakl

    Pirakl

    Joined:
    Aug 3, 2020
    Posts:
    3
    upload_2020-10-20_17-44-43.png upload_2020-10-20_17-44-54.png
    I use unity IAP in the project, they work stably in the Android version from Google Play (all products are created through the code, without first entering in the IAP Catalog - so it is empty in Unity, but I exported the CSV of products from Google Play Console to UDPConsole). Now I need to publish my game to other stores, I downloaded Unity UDP. I was able to initialize it. But how do I close the SandboxTesting stages to be able to send the APK via the UDP Console.
    upload_2020-10-20_17-47-58.png

    upload_2020-10-20_17-48-14.png upload_2020-10-20_17-48-28.png
     
    AdnanSiddique likes this.
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    388
    You need to initialize the UDP SDK on an Android device instead of the editor.

    Please make sure you didn't mix the implementations.
    https://docs.unity3d.com/Packages/c...60.1595238515.1603074313-784943080.1589011093

    If you use Unity IAP to implement UDP, you don't need to initialize UDP in the code, just switch the IAP target to UDP.
    upload_2020-10-21_10-17-16.png
     

    Attached Files:

  3. Pirakl

    Pirakl

    Joined:
    Aug 3, 2020
    Posts:
    3
    In other words, I just need to change the target platform for Unity IAP and leave UDP installed. My UDP Manager script is not needed then? I just need to run the APK on my phone and all two items will be closed immediately in SandboxTesting? Or will you have to wait for some time? Only after closing the SandboxTesting section can I upload the APK to the Binary section and save it?
     
  4. Pirakl

    Pirakl

    Joined:
    Aug 3, 2020
    Posts:
    3
    All works! THanks
     
    watermelonlab and SamOYUnity3D like this.
  5. watermelonlab

    watermelonlab

    Joined:
    Sep 17, 2015
    Posts:
    11
    Hi
    Please share code of adding product into builder and initialize purchasing. I struggling to implement UDP.
     
  6. tebow-tech

    tebow-tech

    Joined:
    Sep 24, 2019
    Posts:
    1
    I understand we must not mix the implementation. I want to use Unity IAP (version 2.1.1) to implement UDP. When I select the UDP settings menu option, there is no problem retrieving the settings from the UDP console. But when I want to switch the Unity IAP Android target to UDP, I get this window:

    upload_2020-12-24_4-1-12.png


    By choosing “go” and download/import, I end up with the following window:


    upload_2020-12-24_4-5-13.png

    uninstall UDP component of Unity IAP?? It doesn't seem right. How do I resolve this problem?
     
  7. NamelessDeveloper777

    NamelessDeveloper777

    Joined:
    May 9, 2021
    Posts:
    1
    hello same problem here did you resolved this problem?
    if yes then can you please give me some suggestions.
     
  8. sharatchandra_unity

    sharatchandra_unity

    Unity Technologies

    Joined:
    Jan 21, 2019
    Posts:
    9
    @NamelessDeveloper777 I would suggest jumping onto the latest version of UIAP (3.2.x) as it has the least amount of friction with downloading dependencies from the asset store.
     
unityunity