iOS app update notification

北战南征 提交于 2019-11-27 20:33:56
MartinMoizard

You can use Harpy : this module trigger a UIAlertView when a new version of your app is available on the App Store.

Harpy is now depricated.Siren was ported from Harpy, as Siren and Harpy are maintained by the same developer. As of December 2018, Harpy has been deprecated in favor of Siren.

Dinh Viet Phu
  1. Apple provide exist api to get latest app information on Appstore: http://itunes.apple.com/jp/lookup/?id=app_id

Ex: http://itunes.apple.com/jp/lookup/?id=1005582646

In response of this api have version field(This is version number of latest build on AppStore)

In AppDelegate->didFinishLaunchingWithOptions, you can call above api.

  1. The way to get current version on user's device:

    NSString* currentAppVersion = [[[NSBundle mainBundle]
    infoDictionary] objectForKey:@"CFBundleShortVersionString"];
    

Now you can compare version number from 1 and 2 to show alert or notification to user when have updated app on AppStore

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