如何让 Mac App Store 应用程序检查更新?
在我的应用程序中,如何让它检查 Mac App Store 中是否有可用更新,并告诉用户这一点?
举个例子,Sparrow 就是这样做的。
Within my app, how can I make it check if there is an update available in the Mac App Store, and tell the user about this?
As an example, Sparrow does this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Charcoal Design 有一个开源组件可以做到这一点:iVersion。
但它要求您在服务器中添加一个文件供应用程序读取。
每当您更新版本时,只需更改服务器中的信息,iVersion 就会向用户显示有新版本可用。
您还可以抓取 Apple 的服务器来读取应用程序的版本,但您的应用程序可能会因此而被拒绝。
Charcoal Design has an open source component that does that: iVersion.
But it requires you to add a file in your server for your application to read.
Whenever you update the version, just change the information in your server, and iVersion will show the user that a new version is available.
You could also scrape Apple's servers to read the version of your app, but there is chance that your app may be rejected for doing that.
基本上,Sparrow 不需要询问 App Store。它可以将其捆绑字符串与其网站上的最新版本进行比较。
Basically, Sparrow does not need to ask the App Store. It can just compare its bundle string to the newest version on their website.