Shankly Rey
Shankly Rey

Reputation: 5

Unity PlayerPrefs not saving across re-installs on Android

I have a 'Money' PlayerPref, I'll give myself money, make it save, upon reinstalling the android APK, it deletes ALL the playerpref's, including owned objects ETC. please help.

Upvotes: 0

Views: 1224

Answers (2)

Parth Lathiya
Parth Lathiya

Reputation: 71

You do not have to necessarily save your data in any of the clouds. ***

Save the data on the external sd card in custom folder

*** and access that data from the game everytime. Make sure to include the if(!data.null) exception handeling for security purpose.

Upvotes: 0

Get Off My Lawn
Get Off My Lawn

Reputation: 36331

Any data that is saved on an android device is associated to the application. When the application gets uninstalled, so does its data.

When an application is updated however, the data precists on the device and only the application gets updated.

To allow data to persist across devices or installs you need to use a remote server to store the data, such as Google's Saved Games Service.

Upvotes: 3

Related Questions