User Identification
First you have to link the account with the Push channel to obtain a customerId.
import { Customer } from 'indigitall-react-native-plugin';
Customer.link({
channel: 'push',
externalId: 'YOUR_EXTERNAL_ID',
}, () => {
// Do something
},(onError) => {
// Log onError
});
On the other hand, if you want to unlink the Customer's account, you have to do the following:
Customer.unlink({
channel: 'push',
externalId: 'YOUR_EXTERNAL_ID',
}, () => {
// Do something
},(onError) => {
// Log onError
});