Code Setup

1 - Vendor Firebase Credentials : To enable Firebase functionality in UniBooker for notifications and chatting, you need to configure the Firebase credentials in the system.

  • Locate the file chat.blade.php in your project directory by navigating to: /your_domain/resources/views/vendor/chat.

  • Open the file and update the Firebase credentials as shown in the image below

  • Save the changes to the chat.blade.php file. This will ensure that the Firebase functionality is properly configured.

2 - Vendor OneSignal Key: To enable push notifications on vendor web portal, you need to configure the OneSignal App ID in the admin panel.

  • Log in to the admin panel and navigate to Settings -> General Settings -> Push Notification Settings.

  • Locate the field to enter the OneSignal App ID and input the key provided by OneSignal.

  • Refer to the image below for guidance

  • Save the changes. Push notifications will now be enabled for your vendor web.

3 - Google Client ID and Secret ID: To enable Google login for the vendor web portal, you need to update the Google Client ID and Secret Id and configure the necessary settings in the Google Console.

  • Locate the file GoogleAuthController in your project directory by navigating to: /your_domain/app/Http/Controllers/VendorAuth.

  • Open the file and update the client_id and secret id fields with the Google Client ID and secret id provided by Google. Refer to the image below:

  • To enable Google login, go to the Google Cloud Console and create a new project. In the API section, add the following details:

    • Web App Name: Provide a name for your web app.

    • Authorized JavaScript Origins: Add your domain name (e.g., /yourdomain.com).

    • Authorized Redirect URIs: Add the URL in the format: /yourdomain.com/google/call-back.

  • For a step-by-step guide on creating a Google Client ID, you can follow the simple steps in this video

  • Save the changes in both the GoogleAuthController file and the Google Console. Google login will now be enabled for the vendor web portal.

Last updated

Was this helpful?