Initialization

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

Com.Indigitall.Maui.MPushConfiguration 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 
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:

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

And the customer's information fields as seen below:

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