This commit is contained in:
@@ -37,6 +37,19 @@ Each notification type includes a data payload. The main DTOs in the notificatio
|
||||
To receive push notifications, clients must register their device token. Token registration is handled in the
|
||||
`NotificationController`. The backend stores or updates the token for the authenticated user.
|
||||
|
||||
### Notification Providers
|
||||
|
||||
When registering a device token, clients must specify the notification provider. The supported providers are defined in
|
||||
`NotificationProvider.java`:
|
||||
|
||||
- **FIREBASE**: Use this provider for Android devices. Tokens registered with this type will be used to send
|
||||
notifications via Firebase Cloud Messaging (FCM) for Android.
|
||||
- **FIREBASE_IOS**: Use this provider for iOS devices. Tokens registered with this type will be used to send
|
||||
notifications via Firebase Cloud Messaging (FCM) for iOS.
|
||||
|
||||
Specify the appropriate provider when registering the device token to ensure notifications are delivered correctly to
|
||||
the device platform.
|
||||
|
||||
---
|
||||
|
||||
## For Backend Developers
|
||||
|
||||
Reference in New Issue
Block a user