Skip to content

Instantly share code, notes, and snippets.

@wcoastsands
Last active June 26, 2017 19:54
Show Gist options
  • Save wcoastsands/86e0c69ee55adb564de7241beaa2a065 to your computer and use it in GitHub Desktop.
Save wcoastsands/86e0c69ee55adb564de7241beaa2a065 to your computer and use it in GitHub Desktop.
Disable IAP Updater
using UnityEditor;
namespace UnityEngine.Purchasing
{
public class DisableUpdateNotice
{
[MenuItem("Window/Unity IAP/Ignore Updates (30 days)", false, 0)]
static void DoDisableUpdateNotice()
{
PlayerPrefs.SetString("PackageUpdaterLastChecked68207", System.DateTime.UtcNow.AddDays(30).ToString());
PlayerPrefs.Save();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment