Initialization

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

IIndigitall indigitall = DependencyService.Get<IIndigitall>();
if (indigitall != null)
{
  PushConfiguration config = new ();
  config.appKey = "<YOUR-APP-KEY>";
  config.senderId = "<YOUR-SENDER-ID>";
	config.disabledpushService = true; //in case you do not use our notification service on your app
    indigitall.Init(config, (permissions, device) =>
    {
        Console.WriteLine("device: " + device.deviceId);
        Console.WriteLine("device: " + permissions);
    }, (device) =>
    {
        //DO SOMETHING
    }, (errorCode,errorMessage) =>
    {
        //DO SOMETHING
    });
}

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

customer.GetCustomer((customerModel) =>
{
    // Do something
}, (code, message) =>
{
    // Do something else
});

And the customer's information fields as seen below:

customer.GetCustomerInformation((new string[] {"field1", "field2"}),
    (customerModel) =>
{
    // Do something
}, (code, message) =>
{
    // Do something else
});