Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

NowSDKConfiguration class- iOS

The NowSDKConfiguration class contains configuration information needed to initialize the NowSDK.

NameTypeDescription
authorizationProviderNowSDKAuthorizationProvidingDelegate object that is responsible for providing authorization tokens to the NowSDK upon request.
logLevelNowLogLevelLevel of log messages for the associated logger to store.Valid values: - debug - error - fatal - info - none
permisionDelegateDevicePermissionDelegateDelegate object called by the NowSDK to request permission from the host application to show system dialog requesting the indicated device permission.

Parent Topic:Mobile SDK - iOS

NowSDKConfiguration - init(authorizationProvider: NowSDKAuthorizationProviding, permissionDelegate: DevicePermissionDelegate, logLevel: NowLogLevel)

Creates a NowSDKConfiguration object.

NameTypeDescription
authorizationProviderNowSDKAuthorizationProvidingDelegate object that is responsible for providing authorization tokens to the NowSDK on request.
permissionDelegateDevicePermissionDelegateDelegate object called by the NowSDK to request permission from the host application to show the system dialog for requesting the indicated device permission. For example:
class PermissionProvider:
DevicePermissionDelegate {
  func canRequestPermission(_ permission: DevicePermission) → Bool {
    return true
  }
}
logLevelNowLogLevelLevel of log messages for the associated logger to store.This sets the logging level for the core services logger. You can also use the NowLoggingService API to set service log levels. Valid values: - debug - error - fatal - info - none
TypeDescription
None 

The following code example shows how to call this function.

guard 
  let instanceUrl = URL(string: "https://sn-instance.service-now.com") else {
  return
}

NowServiceConfiguration(instanceUrl: instanceUrl, appBundleId: "com.servicenow.appBundle")