检测 iPhone 应用程序版本更新?

发布于 2024-09-10 14:58:24 字数 199 浏览 2 评论 0原文

我想确定我的应用程序的新版本何时在 Appstore 上可用,并在发生这种情况时向用户显示某种形式的通知 - 可能是 UIAlertView 或类似的 - 并想知道是否有人知道任何预先设计的框架来执行此操作?我找到了iPhone SDK提供的StoreKit,但它似乎只返回应用程序名称,而不返回版本号,所以对我来说没有用。

非常感谢任何帮助。

谢谢!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

中二柚 2024-09-17 14:58:24

我认为没有一个针对此类问题的预制框架。
至少我在处理这个话题时找不到一个。

我所做的相当简单(前提是您可以访问任何能够上传文件的网络服务器),

我只是创建了一个文本文件,其中包含两个内容。

1) 可用的最新版本的版本号
2)在启动时向用户显示的文本(如果他的版本已过时)

(实际上我在每第三次启动时执行一次,每天不超过一次)我下载txt文件,阅读第一行,提取版本,将其与用户设备上运行的应用程序的当前版本进行比较。如果版本已过时,我会从文本文件中读取第二行并将其显示在 UIAlertView 中。

我希望我能帮忙

*萨姆

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

自此以后,行同陌路 2024-09-17 14:58:24

您可以基于 RSS 创建自己的带外数据,例如基于 Mac 的 Sparkle 框架。当然,您需要自己维护该提要 - 每当更新被接受时,您都会向该提要发布一篇新文章。

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.

冰魂雪魄 2024-09-17 14:58:24

帮助原始问题有点晚了,但认为可能仍然有用。

iVersion 是一个直接从应用程序查询 App Store API 的 SDK。

HockeyKitKrooshal、CleverStork提供监控App Store的SDK和Web服务。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文