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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.

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

    Unity Technologies

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