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 })
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.