Initialization

In order to start using any of our SDK methods, the first thing you need to do is to initialize our SDK.

To initialize it, after loading the library in your web site you must execute the following method:

let config = INPushConfig.init(appKey: "<YOUR-APP-KEY>")
config.disabledPushService = true; //in case you do not use our notification service on your app

Indigitall.initialize(with: config, onIndigitallInitialized: nil, onErrorInitialized: nil);

Once the customer is linked, the customer's id can be requested as follows:

Indigitall.getCustomerWithSuccess { INCustomer in
                //do something
            } onError: { INError in
                //do something
            }

And the customer's information about its fields as follows:

Indigitall.getCustomerInformation(withFieldNames: [String]?) { [INCustomerField] in
                
            } onError: { INError in
                
            }