iOS Mobile SDK: Notify login event

The "Notify login event" is used to indicate that the contact has logged in. It notifies, via Mobile SDK, when a user logs into the website using Connectif.sendLogin().

How it works

The login notification uses the method Connectif.sendLogin(email: String) where we will add the user's email property who logs in.

Attribute Definition Required Limitations
email

Valid email of the user logging in.

Yes

- Valid emails only.

Example

The notification will look like this:

Connectif.sendLogin("userEmail@example.com")

 

Callbacks (Opcional)

Si queremos tener feedback de posibles errores al enviar eventos, podremos añadir un EventCallbacks cuando usemos nuestro método.

EventCallbacks(
    onSuccess: {
        // Manejo en caso de éxito
    },
    onError: { error in
        // Manejo en caso de error
    })
 

Congratulations!
You've reached the end of the lesson.

 

Do you still have unresolved questions?
Remember that our Connectif specialists are available to assist you. To contact them, simply open a support ticket by clicking on the blue "Help" button in your dashboard.


Keep learning!

To fully unlock the potential of your Connectif account, we recommend continuing with the following articles:

Was this article helpful?
0 out of 0 found this helpful