Integration

User Identification

First you have to link the account with a channel (inApp, push or chat) to obtain a customerId.

var linkParams = {"externaId": "YOUR_EXTERNAL_ID", "channel": "push"};

  IndigitallFlutterPlugin.link(
      linkParams,
      () => {
              // Do something
          },
      (error) => {
              // Do something else
          });

On the other hand, if you want to unlink the Customer's account, you have to do the following:

Indigitall.unlink(with: INChannel) {
                //do something
            } onError: { INError in
                //do something
            }