Skip to content

Latest commit

 

History

History
95 lines (61 loc) · 2.12 KB

BREAKING.md

File metadata and controls

95 lines (61 loc) · 2.12 KB

Breaking Changes

This is a comprehensive list of the breaking changes introduced in the major version releases of Capacitor Firebase Cloud Messaging plugin.

Versions

Version 7.x.x

Dependencies

  • The Firebase Javascript SDK has been updated to 11.2.0.

Variables

  • On Android, the firebaseMessagingVersion variable has been updated to 24.1.0.

Version 6.x.x

Dependencies

  • The Firebase Javascript SDK has been updated to 10.9.0.

Variables

  • On Android, the firebaseMessagingVersion variable has been updated to 23.4.1.

Version 5.x.x

Capacitor 5

This plugin now supports Capacitor 5 only. Please run npx cap sync after updating this package.

If you want to use this plugin with Capacitor 4, please install version 1.4.0:

npm i @capacitor-firebase/[email protected]

Localized error messages

On Android, error messages were previously generated with getLocalizedMessage. They are no longer localized and are generated with getMessage instead.

You should therefore check your error handling.

Version 1.x.x

Capacitor 4

This plugin now supports Capacitor 4 only. Please run npx cap sync after updating this package.

If you want to use this plugin with Capacitor 3, please install version 0.5.1:

npm i @capacitor-firebase/[email protected]

tokenReceived event

The tokenReceived event is no longer triggered by the getToken method. If you have used these methods in combination so far, please check your implementation.

Version 0.4.x

The removeDeliveredNotifications now requires a notifications array as parameter:

export interface RemoveDeliveredNotificationsOptions {
-  ids: string[];
+  notifications: Notification[];
}

Version 0.3.x

The Notification.id property is now optional:

export interface Notification {
  /**
   * The notification identifier.
   *
   * @since 0.2.2
   */
-  id: string;
+  id?: string;
   ...
}