Skip to content

v2.0.0

Choose a tag to compare

@rithik-dev rithik-dev released this 22 Sep 21:41
· 46 commits to master since this release
  • BREAKING: No navigator key param in handler, and in callbacks onTap, onOpenNotificationArrive
  • BREAKING: No context in callbacks onFcmTokenInitialize, onFcmTokenUpdate
  • BREAKING: Renamed AppState.closed to AppState.terminated
  • BREAKING: onTap now gives an object of NotificationInfo
  • BREAKING: enableLogs is now available as a static variable in FirebaseNotificationsHandler
  • BREAKING: Renamed onFCMTokenInitialize to onFcmTokenInitialize
  • BREAKING: Renamed onFCMTokenUpdate to onFcmTokenUpdate
  • BREAKING: Renamed initializeFCMToken to initializeFcmToken
  • BREAKING: Removed onFCMTokenRefresh
  • BREAKING: Renamed requestPermissionsOnInit to requestPermissionsOnInitialize
  • BREAKING: Removed sendFcmNotification as API has been deprecated to send notifications from client side.
  • Introduced a new sendLocalNotification function which can be used to send/schedule local notifications.
  • BREAKING: Added androidConfig and iosConfig in and moved platform specific configs there like channelId, channelName etc. which was in the root before, and these values are getters, which can be modified for every incoming message.
  • BREAKING: Renamed NotificationTapDetails to NotificationInfo. NotificationInfo now also holds firebaseMessage.
  • BREAKING: Callbacks onTap and onOpenNotificationArrive callbacks now give NotificationInfo param which contains info about the notification.
  • Added notificationTapsSubscription, notificationArrivesSubscription streams.
  • Added android notification channel create, read, delete methods.
  • Added permissionGetter function to override permission request getter.
  • Added notification handling / modifying callbacks like shouldHandleNotification, messageModifier etc.
  • Added stateKeyGetter getter to generate widget key, allowing to call internal methods using keys.
  • Added getInitialMessage callback to get initial notification details if app was opened from a notification.
  • Added logs in debug mode.
  • Fixed issues with images not showing in notifications.
  • Updated example app with latest SDKs
  • Updated documentation
  • Updated dependencies to latest release
  • Added issue tracker link
  • Updated README.md and badges