Hello!
This is my script, I want to save DateTime when I close the android app. It works perfectly on the editor, but on mobile, it doesn't. Why? Thank you!
void OnApplicationQuit()
{
Application.Quit();
//Savee the current system time as a string in the player prefs class
PlayerPrefs.SetString("sysString", System.DateTime.Today.ToBinary().ToString());
print("Saving this date to prefs: " + System.DateTime.Today);
PlayerPrefs.SetInt("LastScore", 0);
}