BookMyStay BookMyStay Docs Buy Now
Step 6 · Push Notifications

Push Notifications Setup

Configure Firebase Cloud Messaging (FCM) and Apple APNs keys to deliver instant booking confirmations and check-in reminders.

FCM & APNs 20 min

Notifications in BookMyStay are dispatched securely by backend Cloud Functions through Firebase Cloud Messaging. The mobile apps and websites receive notifications without needing secret keys in the client code.

Recipient Destination Platform Notifications Received
Hotel Guests Customer App (Android & iOS) & Customer Website Booking confirmations, check-in vouchers, room readiness alerts, cancellation refunds, and marketing offers
Hotel Managers & Front Desk Admin Panel Web Browser & Notification Bell Instant audio chime & desktop alert on new room bookings, check-in arrivals, and cancellation requests

1. Android Notifications#

Android notifications work out of the box as soon as the app is connected with FlutterFire via google-services.json.

2. iOS Apple Push Key (APNs)#

Apple requires an APNs Authentication Key (.p8) to deliver notifications to iPhones:

  1. In Apple Developer → Certificates, Identifiers & Profiles → Keys → (+), enable Apple Push Notifications service (APNs) and download the .p8 file.
  2. Open Firebase Console → Project Settings → Cloud Messaging → Apple app configuration, select your Customer iOS app, and upload the .p8 file with your Key ID and Team ID.

3. Web Push Key for Admin Panel and Customer Website#

In Firebase Console → Project Settings → Cloud Messaging → Web configuration, click Generate key pair. Copy the key and Sender ID into Admin PanelSettingsFirebase Settings.