Search Unity

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:
    14
    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

    Joined:
    Apr 25, 2018
    Posts:
    52
    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