0

I read this: Check if my IOS application is updated (and its duplicate: How to detect an iOS App installed or upgraded? ), but all answers are about to store something into the user defaults in advance.

These are good answers if you are provident enough, but what if I want to determine it with an update? (And this update can be a new installation for new users.) There's nothing in the user defaults regarding this, so I need a solution for an already existing application. Is there an API for that?

Display Name
  • 4,502
  • 2
  • 47
  • 63
  • You can check the version (which is actually the build) that was originally purchased from the receipt. If you reset your build number with each new version, this won't help you, but if your build number always increases this might help. – Paulw11 Sep 17 '19 at 12:21
  • Luckily it's increasing, so I'll check it. Do you know how to access the receipt? – Display Name Sep 17 '19 at 12:23
  • https://stackoverflow.com/questions/47924123/how-to-get-the-original-application-version-the-first-purchased-version-number – Paulw11 Sep 17 '19 at 12:24

1 Answers1

0

You could use the Keychain, save the version in the device, and check if the installed version is newer or not, this variable remains stored even when a user deletes the application unlike the UserDefault variables. I hope I can help. Let me know.

mfiore
  • 321
  • 3
  • 16