laravel-notification-channels / fcm

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

Change connection file on the fly #87

Closed ayman-elmalah closed 1 year ago

ayman-elmalah commented 3 years ago

When i changing the connection automated and update file credentials on the fly for each tenant

It return to me Unable to create the messaging service without a project ID

I need to change the connection on the fly for our clients using middleware and config set

dwightwatson commented 2 years ago

Laravel's Vonage channel provides a way to change the client on the message if required: https://github.com/laravel/vonage-notification-channel/blob/3.x/src/Channels/VonageSmsChannel.php#L69

I've followed that pattern on a few notification channels too. Sounds like it could be a good fit for FCM too.

dwightwatson commented 1 year ago

Added in #171