Search Unity

Question How to submit UDP build to Google Play?

Discussion in 'Unity Distribution Portal (UDP)' started by villeHelin, Sep 2, 2020.

  1. villeHelin

    villeHelin

    Joined:
    Mar 27, 2013
    Posts:
    40
    I've implemented UDP in a couple of my games, and managed to make builds for e.g., Huawei App Gallery, which is super nice! But how can I make a build for Google Play? Or do I need to implement Unity IAP and remove the UDP implementation to get my apps into Google Play?
     
    Faksper and GilbertoBitt like this.
  2. villeHelin

    villeHelin

    Joined:
    Mar 27, 2013
    Posts:
    40
    Even just a Google Play compatible .apk would be fine, I can manually do the Google Play submission...
     
    Faksper and GilbertoBitt like this.
  3. GilbertoBitt

    GilbertoBitt

    Joined:
    May 27, 2013
    Posts:
    111
    that's the same question i have with it!
     
  4. Faksper

    Faksper

    Joined:
    Feb 8, 2019
    Posts:
    20
    thats a nice question hope get answered
     
  5. kenlem1

    kenlem1

    Joined:
    Mar 20, 2014
    Posts:
    40
    Is good play even supported?
     
  6. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    KnewK likes this.
  7. villeHelin

    villeHelin

    Joined:
    Mar 27, 2013
    Posts:
    40
    Does this mean that it's pretty silly to implement UDP to your app when implementing IAP does the same and offers more? :)
     
  8. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    Hi villeHelin,

    If you want to release your game to Google Play Store and UDP, we are normally recommend you to use Unity IAP SDK and in this case you won't need to manage 2 sets of IAP items in your project.

    You just need to make sure to change your target as the screenshot above and implement the related callbacks will do.

     
  9. villeHelin

    villeHelin

    Joined:
    Mar 27, 2013
    Posts:
    40
    This doesn't seem to work: If I do an IAP validation in ProcessPurchase() of IAP implementation, and export that code as UDP, then the UDP seems to fail always (as the validator only uses Google Play and iOS App Store Tangle Data). How can I make a single IAP implementation that will work with Google Play, iOS App Store, and all the UDP stores UDP supports? Please help! :)
     
  10. cgascons

    cgascons

    Joined:
    Feb 22, 2016
    Posts:
    25
    Also I find this a little tedious, do we have to build twice the same .aab (or apk) and upload one of them to the UDP Portal and the other one to the Google Play Store?
     
    okkurd and intsoftgames like this.
  11. Daahrien

    Daahrien

    Joined:
    Dec 5, 2016
    Posts:
    100
    Weird, the main store (Google Play) is not supported via UDP as well, so yeah I guess we have to make 2 builds manage GP and UDP-stores separate.
     
    TheVirtualMunk and Hansel41 like this.
  12. Yany

    Yany

    Joined:
    May 24, 2013
    Posts:
    96
    There's a mess in my head about this UDP. Is this for distributing your app at once, or for calling API that unifies the IAP transactions? If I don't have any IAP, do I still get any advantages using UDP? Moreover, the UDP console requires me to call IAP functions in sandbox even if I don't have IAP calls. Why? Or it's not needed at all?

    The documentation says:
    1. First, be sure to create UDP Sandbox Test accounts. You can do this in the section directly below, or in the Unity Editor.
    2. Run your UDP APK on an emulator or a real Android device.
    3. Use your UDP Sandbox Test account credentials to log in.
    4. Launch your game. This will call the Initialize() method in your game code.
    5. If your game has IAP items, make at least one IAP transaction. This will call the Purchase() method in your game code. It's a sandbox environment, no real money is involved!
    6. You will see the results during your sandbox testing, and UDP will also capture the results on its back-end.
    My questions:
    1. In point #2: what is UDP apk? Is it my game built? Or it's a specific apk file that comes with the UDP SDK?
    2. Log in? Where? My game does not want the user to log in. Or is it another apk (see question #1)?
    3. What does Sandbox environment mean? Even if I log in, why will it be a sandbox if I had an IAP in my app? What differentiates the sandbox IAP call from a non sandbox?
    4. Since a while Google Play Store requires devs to upload an .aab, not an .apk. UDP console, though, wants me to upload an apk. Why? How can UDP solve the "distribute at once" approach this way?
    Huuuuge mess here, sorry, but quite a few stuff don't make sense to me. :D
     
    Last edited: Oct 8, 2020
  13. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    You will need to implements the initialize and callback methods for UDP SDK. The flow are mostly similar to IAP SDK, just with different callback methods.

    https://docs.unity3d.com/Packages/com.unity.purchasing.udp@2.0/manual/games-with-iap.html#init

     
  14. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    You are correct. You are still required to export the separate build for Google Play Store as UDP is still not support for it yet.

     
    nlaurito_vrtron likes this.
  15. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    1. UDP apk is the exported apk with UDP SDK integrated.
    2. This is the Sandbox login. It's for verify you have integrated UDP SDK properly within your project. You can create a Sandbox login account in Unity Editor's UDP Settings or in the UDP Console.
    3. The UDP apk you exported from Unity editor will be under Sandbox environment. It's mainly for your own testing. After everything is work as expected you will need to repack this apk for different stores.
    4. UDP is not support Google Play Store yet. Because of most of the store is not support for .aab, we are using the .apk for submission.

     
  16. DragonfiAR

    DragonfiAR

    Joined:
    Jun 7, 2017
    Posts:
    2
    So it is still a little unclear. If we want to support Google Play and UDP stores, should we:

    A) Implement UDP and select the "Unity IAP > Android > Google Play" option to build an IAP non-UDP build for Google Play? Then switch it to UDP to build the UDP version.

    B) We have to opt for Unity IAP instead and use the same "Unity IAP > Android > Google Play" / "UDP" option to create the two builds required?

    All the UDP docs seems to say to use the newest UDP method but doesn't mention any way to support Google Play. We obviously want the easiest least error-prone approach to still publish to Google Play or iOS. We also don't want to implement IAP and then be told to switch everything to UDP later. Is it A or B and do they work with just that simple switch?
     
  17. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    135
    In your case if you already have implemented Unity IAP SDK for your game, you can use the method B) which set different target for Unity IAP so that exported APK can be use for Google Play Store (Target Google Play) or UDP (Target UDP). Basically you won't need to change your Unity IAP code with this method.