[英]How to check if an update is available - Swift 4.2 iOS 12
Good morning, I want to know how can I check if an update is available from getting new updates when I commit on my Github then a popup appears and ask that an update is available on the main windows at opening my app. 早上好,我想知道当我在Github上提交内容时,如何通过获取新更新来检查是否有可用的更新,然后会出现一个弹出窗口,并要求打开应用程序时主窗口上是否有可用的更新。
Thank you warmly for helping, 热烈感谢您的帮助,
Louis. 路易。
EDIT: It's for private purposes not for a public release to the App Store 编辑:这是出于私人目的,而不是公开发布到App Store
The Siren framework compares the app version it sees on iTunes App Store with the version number of the currently running app. Siren框架将iTunes App Store上看到的应用程序版本与当前正在运行的应用程序的版本号进行比较。 If the App Store has a higher version, Siren can show an alert.
如果App Store的版本更高,警报器会显示警报。
The Siren README contains all the code snippets you need. 警报器自述文件包含您需要的所有代码段。
Of course pushing to GitHub won't work because your new app version must be pushed to Apple and reviewed by them. 当然,推送到GitHub无效,因为您的新应用程序版本必须推送到Apple并由他们审核。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.