Detecting iPhone app version update?

拥有回忆 提交于 2019-12-18 09:04:36

问题


I'd like to determine when new versions of my app are available on the Appstore and display some form of notification to the user when this happens - perhaps a UIAlertView or similar - and wondered whether anybody knew of any pre-designed frameworks for doing this? I found the StoreKit provided by iPhone SDK but it seems to only return application names, not version numbers, so is of no use to me.

Any help greatly appreciated.

Thanks!


回答1:


I don't think that there is a prefabricated framework for that kind of issue. At least I couldn't find one when i was dealing with that topic.

What I did was fairly easy (provided that you have access to any kind of webserver where you're able to upload files)

I simply created a text file with two things in it.

1) the version number of the most up to date version available 2) a text that is being displayed to the user (in case his version is out of date)

on startup (actually I do it on every 3th startup and not more than once per day) i download the txt file, read the first line, extract the version, compare it to the current version of the app that is running on the users divice. if the version is out of date i then read the second line out of the text file and display it in an UIAlertView.

I hope I could help
*sam




回答2:


You could create your own out-of-band data based on RSS, like the Sparkle framework based on Mac. You'd need to maintain that feed yourself of course - any time an update is accepted, you would publish a new article to the feed.




回答3:


Little late to help original question, but figured might still be useful.

iVersion is an SDK which queries App Store API directly from app.

HockeyKit, Krooshal, CleverStork offer SDK and web service which monitor App Store.



来源:https://stackoverflow.com/questions/3291159/detecting-iphone-app-version-update

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