The Inloco SDK automatically generates and synchronizes unique device IDs with the Inloco backend. However, your application and backend systems might use your own User IDs. Passing your User ID to the Inloco SDK allows for easier integration and control, as your User ID will be readily available as an alias.
The Inloco SDK provides a User ID setter for passing this information when it is available in your app. This setting is persisted between sessions.
// Setting an User IdILMInLoco.setUserId("YOUR_USER_ID")
// Setting an User Id[ILMInLoco setUserId:@"YOUR_USER_ID"];
You can also clear a previous set User ID using the following method:
// Clearing an User IdILMInLoco.clearUserId()
// Clearing an User Id[ILMInLoco clearUserId];
Congratulations! All of your initial configurations have been successfully made and you can now check out our use cases and get started.