5

I need to check application updation in apple store within the application. Every time application starting we need to check this..

please check answer in below post: iOS app update notification

which one is best option? Harpy or any other?

Community
  • 1
  • 1
Rajesh M P
  • 477
  • 1
  • 10
  • 21

1 Answers1

4

You need to have a WebService on your server (or something similar) that your app requests at startup, to know which is the latest version available. (If you don't have a WS yet and really don't want to implement one for that, you may also simply use an XML or text file that contains the version too)

Then compare this version retrieved from your server with the current version of the application, using [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"].

If they are different, you can display the alertview and redirect to itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=[APPID]&mt=8 (replacing APPID with your iTunes Connect App ID), which is the link that will make your iPhone open the AppStore application directly on your application's update page.

You can go with this too but if you Scrape from the app store you're always at risk of having the app store updated and your apps won't be able to fetch the latest version, so you must go with your own version checks like upper steps.

Rajneesh071
  • 30,846
  • 15
  • 61
  • 74
  • 1
    I would go with this as the correct answer, you need to depend on your own service to get the value of latest version, if you Scrape the app store you're always at risk of having the app store updated and your apps won't be able to fetch the latest version, so you must go with your own version checks like @Rajneesh071 did. – Mostafa Berg Jun 13 '13 at 07:29
  • 1
    which one is better? 1) our server application will handle the version detail, every time we need to check with that and give alert to user 2) use https://github.com/ArtSabintsev/Harpy/tree/master/Harpy this – Rajesh M P Jun 13 '13 at 08:05
  • Maybe, with upcoming iOS7 this kind of things doesn't needed anymore. iOS will do automatic update of application. – Wonil Jun 14 '13 at 01:59
  • with present ios you also dont need to check .. just open itune and it will show that which application have new version – Rajneesh071 Jun 14 '13 at 05:30
  • 1
    This isn't true. Users can still turn off the auto-update feature in the Settings app. – ArtSabintsev Dec 21 '13 at 14:44