Skip to content

FCM Service Conflict with Other Firebase Messaging Plugins #150

@Clon1998

Description

@Clon1998

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_activities automatically registers LiveActivityFirebaseMessagingService
  • 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:

  1. Documentation clearly warns about FCM service conflicts and provides integration guidance
  2. Optional service registration - allow developers to disable automatic service registration
  3. 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

  1. Add flutter_live_activities to a Flutter project
  2. Add any other FCM-based plugin (e.g., awesome_notifications_fcm, firebase_messaging)
  3. Try to receive notifications through the other plugin
  4. Observe that notifications are not received/handled correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions