Newsletter

The newsletter widget does automatically validates submitted emails and saves them in the Firestore database. The widget class is:

class NewsletterSignUp1

and the logic is in:

class NewsletterRepository

When an email is submitted the database structure looks like this

Collection: NEWSLETTER
    Document: [the submitted email]
        Content: {
                     'email': [the submitted email],
                     'timestamp': FieldValue.serverTimestamp()       
                 }

Last updated