Go4Food Go4Food Docs v1.0.0
Step 3 · Admin Panel Setup

Notifications & Email

Add the Firebase push keys and Google sign-in client id, connect an SMTP mailbox, and edit the emails Go4Food sends.

10 min

Notification Settings#

Open SettingsNotification Settings. You copy all three values from your Firebase project; Push keys & setup shows exactly where to find each one.

Settings → Notification Settings: FCM Sender ID, VAPID Web Push Key, Google Web Client ID, and Save
  1. 1Notification Sender Key: Firebase Cloud Messaging Sender ID.
  2. 2Web Notification Key: VAPID Key pair for web push.
  3. 3Client Id For Google LogIn: OAuth 2.0 Web Client ID.
  4. 4Save button to persist notification settings.
SettingWhere it comes fromWhat it does
Notification Sender KeyFirebase console → Project settings → Cloud Messaging → Sender IDYour Firebase Cloud Messaging sender id, loaded by the apps. Required.
Web Notification KeyCloud Messaging → Web Push certificates → Key pair (VAPID key)Lets the customer website receive push notifications in the browser. Required.
Client Id For Google LogInAuthentication → Sign-in method → Google → Web SDK configuration → Web client IDUsed by the Customer, Restaurant and Driver apps for Sign in with Google.

Click Save. If one of the first two fields is empty you see Missing information. Please complete all required fields.

Push sending needs no key here

Order notifications are sent by the Cloud Functions with your project's own service account, so there is no server key or JSON file to paste. To send your own message to all customers, drivers or restaurants, use Push Notifications (see below).

SMTP Settings#

Go4Food sends emails (order confirmed, welcome, wallet top-up, withdrawals and more) through your own mailbox. Open SettingsSMTP Settings.

Settings → SMTP Settings: test box at the top, server details below
  1. 1Test email sandbox tool to verify SMTP server credentials.
  2. 2Destination recipient address and Send Test Email button.
  3. 3SMTP Host domain and transmission port (SSL 465 / TLS 587).
  4. 4Email username and dedicated account App Password.
  5. 5Save button to persist verified mailing credentials.
SettingExample
SMTP Hostsmtp.gmail.com
SMTP Port465 for SSL, 587 for TLS
User NameThe full mailbox address. Emails are sent from this address.
PasswordThe mailbox password. For Gmail, create an App password (needs 2-step verification) and use that.
Encryption TypeSSL or TLS, matching the port.

Fill in the server details#

Enter the values from your email provider.

Send a test#

In Verify these credentials, type an address in Recipient (optional) (or leave it empty to send to the SMTP user itself) and click Send Test Mail. The test uses the values on screen, so you can test before saving.

Save#

When the test email arrives, click Save.

Needs the Cloud Functions

Both the test and every real email are sent by Cloud Functions (sendSmtpTestEmail and sendTransactionalEmail). If the test fails with a server error, check that the setup tool deployed the functions. Many hosts block port 25; use 465 or 587.

Email Templates#

Open Service ManagementEmail Templates to change the subject and body of each email.

Email Templates: one card per email, with its subject, variables and Active switch
Email Templates: one card per email, with its subject, variables and Active switch
TemplateSent when
Order ConfirmedA customer places an order.
Order DeliveredThe restaurant hands over a take-away order.
Refer & EarnSomeone signs up with a user's referral code; sent to the referrer.
Restaurant AddedAn owner adds a restaurant.
Sign upA new user registers.
Wallet Top-upA user adds money to their wallet.
Withdrawal RequestA restaurant owner or driver requests a withdrawal (sent to them).
Withdrawal Request (Admin)Meant as a copy of the request for you. Not sent by the current apps.
Withdrawal ApprovedMeant for when you complete a withdrawal. Not sent by the current apps.

Click Edit on a card to change the Subject and the HTML Body, with a Live Preview. Words in double braces, such as {{name}} or {{order_id}}, are replaced with real values; the card lists the Variables each template supports. Switch a template off to stop sending that email.

Push Notifications#

Notification ManagementPush Notifications sends your own message (title and description) to all customers, drivers or restaurant owners, and keeps a list you can Resend. It is covered in Offers, banners & push.