Push Notifications¶
This starter template uses Firebase Cloud Messaging (FCM) to send push notifications to users.
FCM Token¶
The FCM tokens are stored in the fcmTokens
subcollection of the users
collection in Firebase Cloud Firestore:
It's recommended to remove stale FCM tokens from the database. Follow the instructions in the Firebase documentation to set up a Firebase Cloud Function that removes stale FCM tokens.
Send Push Notifications¶
To send push notifications, follow the instructions in the Push Notifications Guide for Capacitor.