Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Identifying exact app store

Discussion in 'Unity Distribution Portal (UDP)' started by Llotar, Feb 25, 2021.

  1. Llotar

    Llotar

    Joined:
    Mar 27, 2016
    Posts:
    11
    Hello,
    I published game to Samsung store via UDP and have an issue identifying exact installation app store. I used info from that page https://docs.unity3d.com/Packages/com.unity.purchasing.udp@2.0/manual/service-interoperability.html which states: "The first time your game is launched on a player’s device, UDP creates and drops a JSON file in the game’s Persistent Data Path". From my observation this file is created only after calling some methods of Purhasing API, I'm using Unity IAP with UDP target.
    Is there a way to force create file at game launch?

    Thanks in advance!
     
  2. phuong_unity

    phuong_unity

    Unity Technologies

    Joined:
    Apr 25, 2018
    Posts:
    26
    The udp.json file is generated during the store initialize method, no matter success or fail. If you need to identify the app store the game was downloaded from, you can also call StoreService.StoreName.
     
    Last edited: Mar 19, 2021
unityunity