Integration

User Identification

First you have to link the account with the Push channel to obtain a customerId.

window.plugins.indigitall.customer.link([{
                "externalId": "YOUR_EXTERNAL_ID",
                "channel": "push"
            }],
            success => {
                // 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:

window.plugins.indigitall.customer.unlink([{           
            "channel": "push"
        }],
        success => {
            // do something
        }, (error) => {
            // do something else
        }