Setting UserID

User Guide: SDKs > Cordova (PhoneGap) SDK > Setting UserID

Setting UserId

The setUserId allows a developer to set a unique ID to aVoltMX Foundryuser. This user ID will be associated with each of the user login sessions that enables a developer to count unique users.

 // Sample code to set userid  

voltmxSDKObject.setUserId("userid");