Search Unity

NoAds PlayerPrefs gets deleted?

Discussion in 'Unity IAP' started by drndfx, Mar 1, 2019.

  1. drndfx

    drndfx

    Joined:
    Jul 3, 2013
    Posts:
    89
    Testing a game in Play store by uploading test APKs

    So a game uses PlayerPrefs to control NoAds function. Once purchased don’t show ads etc.

    When you delete an APK from your Android or IPhone device, does PlayerPrefs also get deleted?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, that is the expected behavior. Although I've heard of reports that on some Android devices, it does not get cleared properly. At any rate, you should assume it does get deleted. You would want to consider using another form of inventory management, such as saving to the cloud. We are discussing possible options to include inventory management in a future release. Keep in mind that restore for non-consumables would automatically retrieve the purchase on reinstall (ProcessPurchase is automatically fired for non-consumables on Android)
     
  3. drndfx

    drndfx

    Joined:
    Jul 3, 2013
    Posts:
    89
    Thanks.