In order to start using any of our SDK methods, the first thing you need to do is to initialize our SDK.
To initialize it, after loading the library in your web site you must execute the following method:
window.plugins.indigitall.init({
urlDeviceApi: 'YOPUR_CUSTOM_DOMAIN',
appKey: 'YOUR_APPKEY', //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:
window.plugins.indigitall.customer.getCustomer(success => {
// do something
}, (error) => {
// log error
})
And the customer's information fields as seen below:
window.plugins.indigitall.customer.getCustomerInformation(
["field1", "field2", "field3"],
success => {
// do something
}, (error) => {
// do something else
}
)