Automatically identify your users on your iOS apps

Automatically identify your users on your iOS apps

Written by Remi Delhaye
Last update: Thursday, Jan 02, 2025
You're in the right place if you're looking for documentation on how to automatically identify logged-in users of your mobile app (e.g. their first/last name, email address, etc.). This is a great feature for your team to:
  • Link a user with their conversation history.
  • Know if you are chatting with a lead or an existing customer.
  • Increase user satisfaction.
Use this code to automatically identify users on your iOS app:
let identify        = SLAASKIdentify.init(identifyName: "JackieChan", options: ["user_id" : "123456", "email" : "[email protected]", "speciality" : "martial artist"])
let config          = SLAASKConfig.init(slaaskToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

config.identify     = identifiy
config.visitorToken = "a-unique-visitor-attribute"

let manager         = SLAASKManager.sharedInstance
manager.config      = config
Make sure you replace the user data example (highlighted in pink) with your own code that inserts real user data for the currently logged-in user on each of your Views. Replace a-unique-visitor-attribute (config.visitorToken) with a UNIQUE identifier for your user. This attribute will be used to identify your users in order to retrieve their conversation history and information.

iOS SDK

4 articles in this category.
Written by Remi Delhaye.