Initialization

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

IndigitallFlutterPlugin.init{
    urlDeviceApi: 'https://device-api.indigitall.com/v1',
    appKey: 'b96ecdad-6246-4864-922c-3294ab5692de', //remember to use your real appKey
    disabledPushService: true //in case you do not use our notification service on your app
  });

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

IndigitallFlutterPlugin.getCustomer(
    (customer) => {
          // Do something
        },
    (error) => {
          // Do something else
        });

And the customer's information fields as seen below:

var fieldsArray = ["field1", "field2"];

IndigitallFlutterPlugin.getCustomerInformation(
    fieldsArray,
    (fields) => {
          // Do something
        },
    (error) => {
          // Do something else
        });