In order to identify users with a known attribute such as an email, phone, username and etc., the SDK provides a method called “identify”. This method should be invoked after user login. During identify method call, the user’s session will be created in the SDK.

Method

@objc public func identify(id: String , controller: UIViewController, addGeo: Bool)

Parameters

id	        - A string containing the user identifier
controller	- The current view controller.
addGeo	    - Flag used to decide whether to append the geo parameter(latitude and longitude) in the Payloads or Not.

Example

Tracker.shared.identify(id: emailTextField.text ?? "No string in text field", controller: self, addGeo: getGPSStatus())