Answer by K_Mohit for Check if my IOS application is updated
This worked for me..func compareVersion(old:String,latest:String) -> Bool { if latest.compare(old, options: .numeric) == .orderedDescending { return true } return false }compareVersion(old: "3.1.5",...
View ArticleAnswer by alexcristea for Check if my IOS application is updated
I've created BundleInfoVersioning swift package to help me solve this issue. It works with all keys in the info dictionary, like CFBundleVersion or CFBundleShortVersionString and with custom key paths...
View ArticleAnswer by Buntylm for Check if my IOS application is updated
I think, given answers are good when you've a small scale application but when you working on a large-scale iOS apps with a long roadmap you definitely need a strong futuristic solution with benefits...
View ArticleAnswer by Pramod for Check if my IOS application is updated
Here is a simple code to know if the current version is different (this code work on simulator too.)-(BOOL) needsUpdate{ NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString*...
View ArticleAnswer by SPatel for Check if my IOS application is updated
Just initialise AppVersionUpdateNotifier in app launch and conform AppUpdateNotifier protocol, enjoy.Use: Swift 3.xextension AppDelegate: AppUpdateNotifier { func onVersionUpdate(newVersion: Int,...
View ArticleAnswer by Cœur for Check if my IOS application is updated
swift version with an important improvement over the accepted answer:using infoDictionary instead of objectForInfoDictionaryKey guaranties that the result is independent from device language, otherwise...
View ArticleAnswer by tilo for Check if my IOS application is updated
You could save a value (e.g. the current app version number) to NSUserDefaults and check it every time the user starts the app.- (BOOL)application:(UIApplication *)application...
View ArticleAnswer by Vignesh for Check if my IOS application is updated
you can store a app version number in NSUserDefaults and check it every time your app is launched. If the number is not available, its a fresh installation. If it is changed , it is an upgrade.
View ArticleCheck if my IOS application is updated
I need to check when my app launches if it was being updated, because i need to make a view that only appears when the app is firstly installed to appear again after being updated.
View Article