iOS Mobile SDK: Notify newsletter subscription event

The "Notify newsletter subscription event" is used to indicate that a contact has subscribed to the newsletter. It notifies, via Mobile SDK, when a contact performs this action and communicates the subscription email using the function Connectif.subscribeToNewsletter().

 

How it works

The newsletter subscription notification uses the email that was provided by one of these methods, so at least one is required:

  • Having logged in with the user via Login.
  • Having registered a new user via Registration.
  • Starting the SDK by providing the user's email.

This type of event automatically collects the following information:

  • Operating system: Android or iOS.
  • App version.
  • Operating system version.
  • Connectif SDK version.

 

Example

The notification will look like this:

Connectif.subscribeToNewsletter()
 

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