-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
The flutter_live_activities plugin automatically registers a FirebaseMessagingService in Android, which conflicts with other FCM-based plugins (like awesome_notifications_fcm) that also register their own FirebaseMessagingService. This causes only one service to receive FCM messages, breaking functionality for other plugins.
Current Behavior
flutter_live_activitiesautomatically registersLiveActivityFirebaseMessagingService- Other FCM plugins (e.g.,
awesome_notifications_fcm) register their own services - Only one service receives FCM messages, breaking the other plugin's functionality
- No documentation warns about this conflict
Expected Behavior
Either:
- Documentation clearly warns about FCM service conflicts and provides integration guidance
- Optional service registration - allow developers to disable automatic service registration
- Integration helpers - provide utilities to integrate with existing FCM services
Current workaround required:
Developers must manually disable the service in their main AndroidManifest.xml:
<service
android:name="com.example.live_activities.LiveActivityFirebaseMessagingService"
android:enabled="false" />Reproduction Steps
- Add
flutter_live_activitiesto a Flutter project - Add any other FCM-based plugin (e.g.,
awesome_notifications_fcm,firebase_messaging) - Try to receive notifications through the other plugin
- Observe that notifications are not received/handled correctly
EArminjon
Metadata
Metadata
Assignees
Labels
No labels