Skip to main content

My Push Notifications

The CRS app's push notifications (issue #216). Register the device's Firebase token after sign-in and switch it off on sign-out. Every push carries data.deliveryId: report it back when the push arrives (received) and when the agent taps it (clicked) — those two calls are the only source of the received and clicked numbers the PMS reads. The data also carries type (BROADCAST or the trigger, e.g. BOOKING_CONFIRMED), ctaText, ctaLink (an app route such as /pdp/{listingId} or /bookings/{bookingId}, or an https:// URL), imageUrl, and bookingId / broadcastId where there is one.