0

I am creating an application to inform the user if he has an update, I have already found how to recover the current version, but the problem here is how can I verify if the iPhone/iPad are already have the latest iOS update?

PS: like in the lookout app

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Amine Harbaoui
  • 1,247
  • 2
  • 17
  • 34

1 Answers1

1

AFAIK, there is no direct way to do such a check.

I assume that it could be achievable -as a workaround- by getting what's the latest released iOS version from an external resource, it could be something like Apple RSS feed -or a similar resource- and compare it with the current device iOS version, using systemVersion:

The current version of the operating system.

as mentioned in this answer.

For instance, you could request an api that might be built by your team to get what's the latest iOS version and resend it to your application to do the comparing.

Hopefully, if I found an appropriate external resource for getting the latest iOS version, I will add it to the answer :)

Ahmad F
  • 30,560
  • 17
  • 97
  • 143
  • Thank you for the answer, I'am trying to find something like what you said (a json response or rss feed) to can compare it with the version it got from device – Amine Harbaoui Aug 10 '17 at 09:29
  • Could you share it when you find it? we could make the question/answer more useful to the viewers :) – Ahmad F Aug 10 '17 at 09:35