Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Where does AppStore stores players’ IAPs and other Game Center data?

Discussion in 'iOS and tvOS' started by Neikke, Sep 26, 2018.

  1. Neikke

    Neikke

    Joined:
    Jun 23, 2017
    Posts:
    72
    Hi,

    I’m trying to figure out where does AppStore stores players’ in-app purchases, in game currency (coins, hearts whatever) and other stuff collected while playing? Do I have to host it myself setting up a server or is it handled through platform itself? For example when player downloads already bought game on a different device under his account and clicks “Restore Purchases” where it restores from? Sorry if it’s too obvious but I’m really stuck.. thanks!!
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Unity IAP does not currently support inventory management. You could save the purchases in PlayerPrefs, but be sure to test the reinstall scenario as PlayerPrefs gets deleted. The purchases will be restored (that is, you'll get a ProcessPurchase callback) if you are the same user on a similar (iOS or Android) device. An iOS purchase would not get restored on an Android device, for example.