laravel-notification-channels / fcm

Firebase Cloud Messaging (FCM) notifications channel for Laravel
https://laravel-notification-channels.com/
MIT License
472 stars 121 forks source link

more methods to send for FCM messages #164

Closed samankarbasi closed 11 months ago

samankarbasi commented 11 months ago

hi, can we have seperated icon with banner. with some other packages i saw, we can send logo (icon of application for example) + a banner image that shows in notification bar.

package: https://github.com/kutia-software-company/larafirebase

generator is like this:

Larafirebase ::withTitle($firebaseNotificationShape->getTitle()) ->withBody($firebaseNotificationShape->getBody()) ->withImage($firebaseNotificationShape->getImageUrl()) ->withIcon($firebaseNotificationShape->getIconUrl()) ->withSound('default') ->withClickAction($firebaseNotificationShape->getActionUrl()) ->withPriority('high') ->withAdditionalData($firebaseNotificationShape->getPayload() ?? null) ->sendNotification($tokens);

dwightwatson commented 11 months ago

Just use that package instead then?

Otherwise PRs accepted.

samankarbasi commented 11 months ago

Just use that package instead then?

Otherwise PRs accepted.

problem with that package is, they use legecy FCM api. its a pity that package with the available potentials is not adding those methods.