laravel_notify_fcm 3.0.0
laravel_notify_fcm: ^3.0.0 copied to clipboard
Laravel Notify for Firebase Cloud Messaging (FCM) - Send push notifications to your Flutter app from Laravel.
3.0.0 - 2026-02-06 #
Added #
LaravelNotifyFcmNotInitializedExceptioncustom exception for clearer error handling when the package is not initialized.- New test suite with unit, integration, API service, and interceptor tests.
- Proper type annotations on
apiServiceFcmreturn type and interceptors getter.
Changed #
- BREAKING:
init()no longer requires afirebaseMessagingparameter. The package no longer managesFirebaseMessaginginternally -- consumers must manage Firebase directly. - BREAKING:
storeFcmDevice()now requiresfcmTokenas a positional parameter and returnsFuture<bool?>instead ofFuture<NotificationSettings?>. - BREAKING:
enableFcmDevice()anddisableFcmDevice()now requirefcmTokenas a positional parameter andsanctumTokenas a named parameter. - BREAKING: Sanctum token is now passed per-call instead of being stored as instance state. Removed
getSanctumToken()andsetSanctumToken()methods. - Authentication header (
Authorization: Bearer) is now set at the API request level instead of via the interceptor. - Interceptor now gracefully handles uninitialized state instead of throwing.
- Upgraded
nylo_supportto ^7.0.0,device_metato ^3.0.0,dioto ^5.9.0.
Removed #
- BREAKING:
firebase_messagingdirect dependency. Consumers must addfirebase_messagingto their ownpubspec.yamland pass the FCM token to this package. - BREAKING:
getFirebaseMessaging()method. - BREAKING:
getFcmToken()static method. - BREAKING:
getSanctumToken()andsetSanctumToken()methods. - CLI scaffolding system (
bin/main.dart,lib/cli_dialog/,lib/stubs/,lib/slate_laravel_notify_fcm.dart,lib/models/). pretty_dio_loggerdependency.
2.1.5 - 2025-12-17 #
- Add extra check to
getFcmTokenmethod to ensure token is not null - pubspec.yaml update
2.1.4 - 2025-12-13 #
- pubspec.yaml update
2.1.3 - 2025-05-23 #
- pubspec.yaml update
2.1.2 - 2025-03-28 #
- Small tweak to
EnableNotificationsPage
2.1.1 - 2025-03-27 #
- pubspec.yaml update
2.1.0 - 2025-02-05 #
- Add the ability to scaffold Notifications in your Nylo app
- Run
dart run laravel_notify_fcm:main installto scaffold the necessary files for FCM notifications - pubspec.yaml update
- Update Readme
2.0.0 - 2025-01-12 #
- Small Refactor
- Update Readme
- pubspec.yaml update.
1.0.2 - 2024-07-08 #
- pubspec.yaml update.
1.0.1 - 2024-06-15 #
- pubspec.yaml update.
1.0.0 - 2024-06-10 #
- Update README.md
- Fix bug with API Service and request headers.
0.0.4 - 2024-06-09 #
- Update README.md.
- pubspec.yaml update.
0.0.3 - 2024-06-08 #
- Update README.md.
- pubspec.yaml update.
0.0.2 - 2024-06-07 #
- Add example, update service.
0.0.1 - 2024-06-07 #
- Initial release.