Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS app update check within application [closed]

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?

like image 218
Rajesh M P Avatar asked Oct 03 '22 20:10

Rajesh M P


1 Answers

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.

like image 102
Rajneesh071 Avatar answered Oct 07 '22 17:10

Rajneesh071