Push notifications alert users to new messages even when they're not actively using ChatNet. This guide covers setting up Firebase Cloud Messaging (FCM) and Pushy as push notification providers.
Navigate to General Settings > Notifications
ChatNet supports two push notification providers:
| Provider | Pros | Cons |
|---|---|---|
| Firebase | Free tier generous, Google integration, widely used | More complex setup, Google account required |
| Pushy | Simple setup, reliable delivery, works in China | Paid service (free tier available) |
Firebase Cloud Messaging (FCM) is Google's free push notification service.
| Setting | Where to Find |
|---|---|
| Enable Push Notifications | Set to Yes |
| Push Provider | Select Firebase |
| Firebase Service Account Json | Paste entire contents of downloaded JSON file |
| Firebase Messaging Sender ID | Project Settings > Cloud Messaging > Sender ID |
| Firebase Api Key | Project Settings > General > Web API Key |
| Firebase Project ID | Project Settings > General > Project ID |
| Firebase App ID | Project Settings > General > Your apps > App ID |
Security: The Service Account JSON contains sensitive credentials. Never expose it publicly or commit it to version control.
Pushy is a reliable push notification service that works across all platforms and regions.
| Setting | Value |
|---|---|
| Enable Push Notifications | Set to Yes |
| Push Provider | Select Pushy |
| Pushy Api Key | Your Pushy secret API key |
| Pushy App ID | Your Pushy application ID |
After configuration:
| Issue | Solution |
|---|---|
| Notifications not appearing | Check browser notification permissions |
| Permission prompt not showing | Ensure site is served over HTTPS |
| Firebase errors in console | Verify all Firebase credentials are correct |
| Service worker issues | Clear browser cache and re-register |
| Notifications work on some browsers only | Some browsers have limited PWA support |
Push notifications work on:
Note: iOS Safari requires the site to be added to the home screen (PWA) for push notifications to work.