IOS app update check within application [closed]

不羁岁月 提交于 2019-12-23 11:58:03

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/17081181/ios-app-update-check-within-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!