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. Dismiss Notice

Question Confused on what to use: IAP or UDP or both

Discussion in 'Unity IAP' started by Serve, Oct 31, 2021.

  1. Serve

    Serve

    Joined:
    Nov 8, 2012
    Posts:
    13
    I am planning to release a game on Apple, Google and third party stores like Samsung Galaxy store. To publish the game on third party app stores I am looking towards Unity Distribution Portal. And then it starts to become a little bit confusing regarding In app purchases.
    At first I was looking towards using Unity IAP. But somewhere I read that this doesn't support the Samsung Galaxy store for instance. So I assume it now only supports iOS and Google Play. But at the same time it looks like Unity IAP can target UDP.
    The UDP documentation is also not very clear on what to use: it says IAP, IAP and UDP or UDP only. But apparently I cannot use UDP for managing iOS in app purchases. Also there is almost no source code examples on the UDP approach regarding how to purchase, callbacks, validation and restoration.

    So I am wondering if anyone else can give me some recommendation on how to proceed. Thx!
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
  3. Serve

    Serve

    Joined:
    Nov 8, 2012
    Posts:
    13
  4. MassiveHeadGames

    MassiveHeadGames

    Joined:
    Jun 5, 2021
    Posts:
    22
    @JeffDUnity3D Thank you Jeff for the links - the videos really help.

    We are targeting multiple diverse platforms: Steam, Google Play, Apple, and Samsung Galaxy Store. I've recently implemented IAP for Steam and now the Google Play, but I am new to the Galaxy Store IAP. I thought it was going to be straight forward but I can't find much info on the forums and the one's I do find now say the Samsung target for Unity IAP is deprecated and to use UDP.

    I am just wondering, is UDP optional or required specifically for the Samsung Galaxy Store (and all the others listed on the UDP portal)? Can we bypass the Unity IAP + UDP method and just use Samsung's own Unity plugin? Or does their plugin also work with Unity IAP thus forcing us to use UDP?
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    UDP is now required for Samsung support. Feel free to try Samsung's plugin, and report back!
     
  6. MassiveHeadGames

    MassiveHeadGames

    Joined:
    Jun 5, 2021
    Posts:
    22
    @JeffDUnity3D UDP looks intriguing but I am leery at this point to insert yet another (new) in between tech just to accommodate one platform - my concerns may be unfounded but after wrangling with Steam and GP I want to minimize the amount of time debugging issues. I will try the Samsung plugin first and get back to you.
     
  7. Serve

    Serve

    Joined:
    Nov 8, 2012
    Posts:
    13
    @MassiveHeadGames @JeffDUnity3D Today it was announced by Unity that Samsung Galaxy store will be removed from UDP in January. So you will have to use the Samsung Unity plugin & SDK, use a bundel id that ends with .gs and remove the UDP SDK all together for the Samsung build. Currently trying to find out how to exclude folder for different build targets as I do want to use UDP for ONE store and Huawei App Gallery but not for Samsung Galaxy Store.
     
  8. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    Hello, jeff,is there any documentation for using iap and udp in combination, I only see separate documentation.
    For example, in the case of using both, which part is initialized with iap and which part is initialized with udp?
     
  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Are you planning to release to Asia markets? I might suggest to just start with IAP and get that working first.
     
  10. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    When I use iap+google play, everything works fine.
    But when I use udp, I set the bulid target to udp, and when I use sandbox testing, the first initialization is successful, but when I switch the purchased item, the initialization of iap fails.
    So, I would like to ask if there is any documentation for using udp in combination with iap.
     
  11. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    thank you jeff.
    Now in the state of iap+google play, everything is fine.
    But iap+udp, there will be many problems.
     
  12. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    What problems?
     
  13. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13
    look at the console record, it is not get the iap catalog in the udp console.
    However, when it was initialized for the first time, it was successfully obtained.
     
  14. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Sorry I can't view your console so I'm not sure what you may be referring to. For UDP questions, please ask here https://forum.unity.com/forums/unity-distribution-portal-udp.352/
     
  15. fatogregnome

    fatogregnome

    Joined:
    Jun 5, 2022
    Posts:
    13