Core

IMI.IMIconnect

This class contains the methods to initialize the SDK and register a user. When integrating the SDK into your app it is mandatory to use this class to initialize the SDK before any other features are used. With exception to the Authentication module, it is also necessary to register a user before other features are used.

// Provides a means to shutdown the SDK and perform cleanup, after this method is called none of the SDK features will worktry {
IMI.IMIconnect.shutdown();
} catch (error) {
console.log(error)
}

register

This method is used to register the userId with IMIconnect. This method reads the device details and sent to IMIconnect platform. Once a user is registered all further SDK calls take place in the context of that user.

getAppId

getClientKey

This method is used to get the client key.

Syntax:String getClientKey()

Return Value: Returns the client key.

IMI.ICDeviceProfile

An ICDeviceProfile instance should be instantiated to register a device profile.The developer can choose to register the device profile with a deviceId only or with a deviceId and an appUserId. Users' can generate their own device ID or can choose the default deviceId provided by the SDK.If the user chooses to register a device profile with the deviceId only, then the backend will automatically generate an appUserId.The current device profile is accessible via the IMIconnect class.