Download the PHP package icemix/laravel-fcm-notification-channel without Composer
On this page you can find all versions of the php package icemix/laravel-fcm-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icemix/laravel-fcm-notification-channel
More information about icemix/laravel-fcm-notification-channel
Files in icemix/laravel-fcm-notification-channel
Package laravel-fcm-notification-channel
Short Description Icemix Firebase Cloud Messages Notification Driver
License MIT
Homepage https://github.com/ettagbe/laravel-fcm-notification-channel
Informations about the package laravel-fcm-notification-channel
Icemix FCM notification channel for Laravel 5.3
This package makes it easy to send notifications using Firebase Cloud Messaging (FCM) with Laravel 5.3. This package is based on brozot/laravel-fcm, so please read that documentation for more information.
Contents
- Installation
- Usage
- Available message types
- Available message methods
- Testing
- Credits
- Support
- License
Installation
You can install this package via composer:
Register the provider directly in your app configuration file config/app.php:
Usage
Now you can use the channel in your via() method inside the notification:
Available message types:
FCMMessage: Send notifications to device(s).FCMMessageTopic: Send notifications to topic(s).FCMMessageGroup: Send notifications to group(s).
In order for your notice to know who to send messages, you must add routeNotificationForFCM method to your notification model.
Available message methods
data(): Notification data.array|LaravelFCM\Message\PayloadData|LaravelFCM\Message\PayloadDataBuilderoptions(): Notification options.array|LaravelFCM\Message\Options|LaravelFCM\Message\OptionsBuildernotification(): Notification content.array|LaravelFCM\Message\PayloadNotification|LaravelFCM\Message\PayloadNotificationBuilder
Proxy methods. See brozot/laravel-fcm for more information about this methods.
setDryRunsetPrioritysetTimeToLivesetCollapseKeysetDelayWhileIdlesetMutableContentsetContentAvailablesetRestrictedPackageNameisDryRungetPrioritygetTimeToLivegetCollapseKeyisDelayWhileIdleisMutableContentisContentAvailablegetRestrictedPackageNamesetTagsetBodysetIconsetTitlesetSoundsetBadgesetColorsetChannelIdsetClickActionsetBodyLocationKeysetBodyLocationArgssetTitleLocationKeysetTitleLocationArgsgetTaggetBodygetIcongetTitlegetSoundgetBadgegetColorgetChannelIdgetClickActiongetBodyLocationKeygetBodyLocationArgsgetTitleLocationKeygetTitleLocationArgs
Testing
Credits
- Etta Egbe Joseph
- All Contributors
Support
Having trouble? Open an issue!
License
The MIT License (MIT). Please see License File for more information.