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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to update products for Unity IAP after initialized?

Discussion in 'Editor & General Support' started by Andy-Lee, Mar 29, 2016.

  1. Andy-Lee

    Andy-Lee

    Joined:
    Aug 16, 2014
    Posts:
    26
    Hi everyone,

    I wonder is there any proper way to update the products after UnityPurchasing.Initialize has been called once before?

    Our app is using a system that can load the up-to-date app data from our server if the device is connected to network. This process can happen at anytime while the app is running. It may not necessarily happen right after the app has launched because of different reasons (e.g. network connectivity, server status, etc.), and we don't want to require our users to wait for it before they can check the IAP page. Therefore, we initialize UnityPurchasing according to the local app data before the server app data is loaded. Once the server app data is loaded, we want to update the products in UnityPurchasing.

    Currently, we can see that UnityPurchasing.Initialize is the only way to provide product settings. We have tried calling it twice with different settings. But the second call doesn't have any callback. It is not very good for us as we cannot update the IAP page.

    We would be pleased if someone can show us the proper way to update product settings. :)

    Best regards,
    Andy
     
  2. Andy-Lee

    Andy-Lee

    Joined:
    Aug 16, 2014
    Posts:
    26
    Still waiting for help:)
     
  3. Andy-Lee

    Andy-Lee

    Joined:
    Aug 16, 2014
    Posts:
    26
    Anyone please? We need a way to update products in runtime. Or should I submit a request for that?
     
  4. niclis123

    niclis123

    Joined:
    Jul 21, 2017
    Posts:
    1
    bump!!!
     
  5. SDudzic

    SDudzic

    Joined:
    Dec 10, 2015
    Posts:
    3
  6. RAlievGreenGrey

    RAlievGreenGrey

    Joined:
    Jun 30, 2021
    Posts:
    1