Skip to content

Conversation

@Lyokone
Copy link
Contributor

@Lyokone Lyokone commented Jul 24, 2025

Remove deprecated sendMessage method from firebase_messaging

This PR removes the deprecated sendMessage method from the firebase_messaging package as part of preparing for a breaking change release. The method was deprecated due to Firebase decommissioning this functionality in June 2024.

Changes

  • Removed sendMessage method from main FirebaseMessaging class
  • Removed method from platform interface
  • Removed method from method channel implementation
  • Updated tests to remove sendMessage test cases

Migration Guide

The sendMessage method was Android-only and allowed sending FCM messages from the client. To migrate, use Firebase Cloud Functions or your backend server to send messages instead of the client-side method.

Breaking Change

This removes the deprecated sendMessage method entirely. Apps using this method will need to migrate to server-side message sending before upgrading.

@Lyokone Lyokone changed the title feat(messaging): remove deprecated functions feat(messaging)!: remove deprecated functions Jul 24, 2025
Copy link
Contributor

@MichaelVerdon MichaelVerdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Lyokone Lyokone merged commit 1b71626 into main Jul 25, 2025
27 of 30 checks passed
@Lyokone Lyokone deleted the feat/messaging-deprecation branch July 25, 2025 14:17
@roberto-gigli
Copy link

Old installation of firebase messaging stopped working after this update

/firebase_messaging-14.9.1/lib/src/messaging.dart:220:22: Error: The method 'sendMessage' isn't defined for the class 'FirebaseMessagingPlatform'.

@firebase firebase locked and limited conversation to collaborators Aug 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants