Closed vimalmistry closed 2 years ago
Same issue is happening to me. it works in my local machine but not in AWS. Any solution?
Can you paste your composer.lock
please?
Here it is attached. Thanks in advance. composer.lock.txt
I'm having similar issue. Any updates?
Any update on this? Thanks
🤔
I had no solution for this. So I triggered manually call on toMail function. I know it was bad practice but submitted project :)
@vimalmistry Hi, and thanks. Can you explain to me how you work around this?
@msassa notification channel is not working. But if I send manually by using libarary. It's working. So I triggered libarary manually on toMail function of notification class.
Silly question, did you import it?
use NotificationChannels\Fcm\FcmChannel;
I got the same error and this happened because i didn't import it, but it's weird because neither PHP nor my code editor marked "FcmChannel::class" as missing
Silly question, did you import it?
use NotificationChannels\Fcm\FcmChannel;
I got the same error and this happened because i didn't import it, but it's weird because neither PHP nor my code editor marked "FcmChannel::class" as missing
No. This library using kreait/laravel-firebase
package. Use this
possible solution is manually register FcmChannel in AppServiceProvider
Excuse me, has anyone solved it?
I am using Laravel 6. I faced the same problem, but after downgrading the laravel-notification-channels/fcm version to 2.0.4 (from 2.2.1) the issue resolved.
@MOfaruk Thank you, let me try
As pointed out by @chuysb in #67 , in my case the problem occurs when the notification implements the ShouldQueue contract. I am using the channel in Lumen 8 and I registered the facade in the bootstrap/app.php file:
$app->register(Kreait\Laravel\Firebase\ServiceProvider::class);
$app->withFacades(true, [
'Illuminate\Support\Facades\Notification' => 'Notification',
'NotificationChannels\Fcm\FcmChannel' => 'FcmChannel',
]);
I am using Redis for my queues. It works fine when the notification is sent synchronously. What am I doing wrong?
Solved. It turned out I didn't restart the queue worker after installing the library. The code loaded from the queue:work command didn't contain the FcmChannel class and it crashed.
i run this in server php artisan queue:restart and its work for me
I installed everything as mentioned in document. I am getting this error.