With this option, AndVersion controls the parameters in json file and handles the situations that are wanted.
Add this code to didFinishLaunchingWithOptions in your AppDelagate.m

#import "AndVersion.h"

import "AndVersion.h"

```objective c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//if showAlertForNewVersion is set true, AndVersion shows whats new info view when the user must update his app.
//The user can not use the app without updating
[AndVersion sharedAndVersion].showAlertForMandatoryUpdate = YES;
//if showAlertForOptionalUpdate is set true, AndVersion shows whats new info view when the app version is old but ok.
//The user can use the app without updating
[AndVersion sharedAndVersion].showAlertForOptionalUpdate = YES;
//if showAlertForNewVersion is set true, AndVersion shows whats new info view when the user updates his app.
[AndVersion sharedAndVersion].showAlertForNewVersion = YES;
[[AndVersion sharedAndVersion] checkVersionWithUrl:@"https://andversion.com/sample/demoIOS.json"];
// Override point for customization after application launch.
return YES;
}

With Callback and Autopilot

You can use callback and autopilot features by implementing both of them.

Parameters

These parameters is used only for autopilot mode. All there parameters have default value.