File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,17 @@ + (BNCUpdateState) updateStateWithBuildDate:(NSDate*)buildDate
214214 storedAppVersion : (NSString *)storedAppVersion
215215 currentAppVersion : (NSString *)currentAppVersion {
216216
217+ if ([UIDevice currentDevice ].systemVersion .floatValue > 10.3 &&
218+ storedAppVersion.length <= 0 ) {
219+ // iOS version greater than 10.2 and 10.3 since there were update problems there.
220+ //
221+ // Doesn't count re-installs or some enterprise distribution schemes.
222+ // This solves the case where a user installs the app, doesn't run it,
223+ // updates the app, then runs the app. These were being counted as updates
224+ // rather than installs.
225+ return BNCUpdateStateInstall;
226+ }
227+
217228 if (storedAppVersion) {
218229 if (currentAppVersion && [storedAppVersion isEqualToString: currentAppVersion])
219230 return BNCUpdateStateNonUpdate;
You can’t perform that action at this time.
0 commit comments