Completing the Integration

Callbacks offered by the SDK

Our SDK offers various callbacks that help you have greater control of the execution flow and implement custom behaviors.

tiindigitall.init({
        appKey: "YOUR_APPKEY", 
        senderId: "YOUR_SENDER_ID",
    }, (device)=>{
        //callback initialize
    },(device) => {
        //callback onNewUserRegistered
    }, (error) => {
        //callback error
    });

Initialized SDK

The device object that returns the callback will be executed when the device has been registered for the first time, that is, in the first execution of the app after being installed. and when the SDK finishes initializing and the device is ready to receive notifications from indigitall.

tiindigitall.init({
        appKey: "YOUR_APPKEY", 
        senderId: "YOUR_SENDER_ID",
    }, (device)=>{
        //callback initialize---HERE
    },(device) => {
        //callback onNewUserRegistered
    }, (error) => {
        //callback error
    });

It receives as a parameter the Device object with the information associated with the device.

New registered device

The method onNewUserRegistered of the InitCallBack object will be executed when the device has been registered for the first time, that is, in the first execution of the app after being installed.


It receives as a parameter the Device object with the information associated with the device.

tiindigitall.init({
        appKey: "YOUR_APPKEY", 
        senderId: "YOUR_SENDER_ID",
    }, (device)=>{
        //callback initialize
    },(device) => {
        //callback onNewUserRegistered---HERE
    }, (error) => {
        //callback error
    });

An error has occurred

The error method will run only if an error occurs during the initialization of the SDK.

It receives the description of the error as a parameter.

tiindigitall.init({
        appKey: "YOUR_APPKEY", 
        senderId: "YOUR_SENDER_ID",
    }, (device)=>{
        //callback initialize
    },(device) => {
        //callback onNewUserRegistered
    }, (error) => {
        //callback error---HERE
    });