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 |
---|---|---|---|
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 })
Keep learning!
To fully unlock the potential of your Connectif account, we recommend continuing with the following articles:
- Android SDK Get Started, to add Connectif Mobile SDK to your Android project.
- Firebase Cloud Messaging Setup, to enable push sending and receiving via the Android Mobile SDK.
- iOS SDK Get Started, to add Connectif Mobile SDK to your iOS project.
- Apple Push Notifications Service Setup, to enable push sending and receiving via the iOS Mobile SDK.