IOS - request user to upgrade to latest version of application

Is there any method or plugin that will warn the user about updating the application if the version they are using is not the latest? I assume I can ping a web service to check what the current version is and compare with the user version and go from there. Aside, is there a way to check the current version of the application (some property that I don’t know about), or just need to hard-code the version as some kind of float variable or something like that?

thanks

+4
source share
5 answers

There is a small, small, open source library called Harpy that will do this for you! It provides the ability to check for updates at startup, daily or weekly, and it uses itunes to check, so the config is really minimal.

+2
source

You will need to create the function of checking for updates yourself. however, you can get version information from the application.

NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]; 

Remember this only because you have an application. and he was released to the store. this does not mean that the application is immediately accessible to all users through the application store.

+1
source

You will need to create such a solution yourself. There are no update check features provided by the iOS SDK.

Most applications simply check a site or similar, as you have already reviewed.

0
source

You can grab the version from info.plist using

  NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; self.applicationVersion = [infoDict objectForKey:@"CFBundleVersion"]; self.applicationBuild = [infoDict objectForKey:@"CFBundleShortVersionString"]; 

And yes, just click the web service. Or, even simpler, you can just put the file on S3 and update it with the version number.

0
source

There is an updated version of the harpy called siren to help you. Below link, https://github.com/ArtSabintsev/Siren

0
source

Source: https://habr.com/ru/post/1437504/


All Articles