Search Unity

Resolved IAP: Unavailable product

Discussion in 'Unity Distribution Portal (UDP)' started by akirayui, Dec 1, 2020.

  1. akirayui

    akirayui

    Joined:
    Jul 25, 2019
    Posts:
    9
    I submitted a game on App Gallery but there is a strange issue.
    "Unavailable product" error occurred after user signed in. Everything is working on sandbox mode.

    Code (CSharp):
    1. 2020-12-01 08:53:48 9011-9132/? I/UnityDistPlatform: [HUAWEI] Querying Inventory
    2. --------- beginning of system
    3. 2020-12-01 08:53:49 9011-9011/? D/UnityDistPlatform: [HUAWEI] getPurchases onSuccess:[]
    4. 2020-12-01 08:53:49 9011-9011/? D/UnityDistPlatform: [HUAWEI] getPurchases onSuccess:[]
    5. 2020-12-01 08:53:49 9011-9011/? D/UnityDistPlatform: [HUAWEI] getProductInfos code 0 productInfo []
    6. 2020-12-01 08:53:49 9011-9011/? D/UnityDistPlatform: [HUAWEI] query Inventory : get the product information for your specified products along with all purchases
    7. 2020-12-01 08:53:49 9011-9011/? D/UnityDistPlatform: [HUAWEI] This is huawei, query inventory finished
    8. 2020-12-01 08:53:49 9011-9011/? I/Unity: onQueryInventory, inventoryString: {"purchases":[],"products":[]}
    9. 2020-12-01 08:53:49 9011-9132/? W/Unity: Unavailable product sku-50 -sku-50
    10. (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    11. 2020-12-01 08:53:49 9011-9132/? W/Unity: Unavailable product sku-250 -sku250
    12. (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    13. 2020-12-01 08:53:49 9011-9132/? W/Unity: Unavailable product sku-500 -sku500
    14.  
    15. (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    16. 2020-12-01 08:53:49 9011-9132/? W/Unity: Unavailable product sku-1000 -sku-1000
    17.  
     
    Last edited: Dec 1, 2020
  2. evilzeppelin

    evilzeppelin

    Joined:
    Dec 1, 2017
    Posts:
    3
    The same happens to me on Samsung Galaxy Store, QooApp Game Store, and SHAREit Game Store.
    I'm guessing it has to do with how UDP communicates with the store server and how it sets up the IAP.

    Maybe IAPs are not available in any store until you publish the app?
     
  3. akirayui

    akirayui

    Joined:
    Jul 25, 2019
    Posts:
    9
    The problem is caused by my fault.
    I had submitted the app from App Gallery console directly. The problem was fixed when I released it via UDP.
     
  4. evilzeppelin

    evilzeppelin

    Joined:
    Dec 1, 2017
    Posts:
    3
    I released via UDP and the error is still showing... Can you share how you did your current setup? Thank you