Initialize SDK settings in iOS

SDKSettings in Xandr Mobile SDK contains the method optionalSDKInitialization(), which allows you to pre-configure common settings such as checking the presence of the User Agent during initialization, preparing a WebView etc. The completion block of this method returns true if SDK initialization completes successfully and false if it fails.



Checks the availability of User Agent and returns a Boolean value accordingly during SDK initialization.

- (void) optionalSDKInitialization:(sdkInitCompletion _Nullable)success


[[ANSDKSettings sharedInstance] optionalSDKInitialization:^(BOOL isSDKInitialized) {
      NSLog(@"SDK Initialized");
      NSLog(@"SDK did not initialize");