I've used Laravel-FCM to send notifications in my laravel application
this is my .env file
FCM_SERVER_KEY=AAAA5VxATP....AsjN9Rk5y29AocvQ
FCM_SENDER_ID=98.....62
and this is my fcm.php file
<?php
return [
'driver' => env('FCM_PROTOCOL', 'http'),
'log_enabled' => true,
'http' => [
'server_key' => env('FCM_SERVER_KEY', 'AAAA5VxATPY:APA91bEDAx....nhvhLuAGs4sE_DjmAsjN9Rk5y29AocvQ'),
'sender_id' => env('FCM_SENDER_ID', '98.....62'),
'server_send_url' => 'https://fcm.googleapis.com/fcm/send',
'server_group_url' => 'https://android.googleapis.com/gcm/notification',
'timeout' => 30.0, // in second
],
];
It works fine in Postman, But in Laravel I'm getting this error: FCM_SENDER_ID or FCM_SERVER_KEY are invalid
Where am i going wrong?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire