---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# NowSDKConfiguration class - iOS

# NowSDKConfiguration class - iOS {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The NowSDKConfiguration class contains configuration information
needed to initialize the NowSDK.
{#NowSDKConfigurationiOSAPI__table_vx2_klw_5pb__entry__3}

| Name | Type | Description |
|-|-|-|
| authorizationProvider | NowSDKAuthorizationProviding | Delegate object that is responsible for providing authorization tokens to the NowSDK upon request. |
| logLevel | NowLogLevel | Level of log messages for the associated logger to store. Valid values: * debug * error * fatal * info * none {#NowSDKConfigurationiOSAPI__ul_ihw_phx_5pb} |
| permisionDelegate | DevicePermissionDelegate | Delegate object called by the NowSDK to request permission from the host application to show system dialog requesting the indicated device permission. |
[Table 1. Properties]

{#NowSDKConfigurationiOSAPI__table_vx2_klw_5pb}

## NowSDKConfiguration - init(authorizationProvider: NowSDKAuthorizationProviding,
permissionDelegate: DevicePermissionDelegate, logLevel: NowLogLevel) {#ariaid-title2}

Creates a NowSDKConfiguration object.
{#NSDKConiOS-init_O_O_S__table_rmy_jvq_5pb__entry__3}

| Name | Type | Description |
|-|-|-|
| authorizationProvider | NowSDKAuthorizationProviding | Delegate object that is responsible for providing authorization tokens to the NowSDK on request. |
| permissionDelegate | DevicePermissionDelegate | Delegate 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 } } |
| logLevel | NowLogLevel | Level 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](https://servicenow-prod.fluidtopics.net/L37z8YBSGQPtmfoUGlxyaw#NowLoggingServiceiOSAPI "The NowLoggingService class provides functions that provide logging capabilities to feature services with the NowSDK.") API to set service log levels. Valid values: * debug * error * fatal * info * none |
[Table 2. Parameters]

{#NSDKConiOS-init_O_O_S__table_rmy_jvq_5pb} {#NSDKConiOS-init_O_O_S__table_smy_jvq_5pb__entry__2}

| Type | Description |
|-|-|
| None |   |
[Table 3. Returns]

{#NSDKConiOS-init_O_O_S__table_smy_jvq_5pb}  
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")


