Open mubassirhayat opened 6 years ago
@mubassirhayat I know this is late, but if someone gets to the same problem – I got it working by updating zendframework/zendservice-google-gcm dependency:
composer update davibennun/laravel-push-notification --with-dependencies
Also make sure you message data contains notificationData key, so your message data could look as follows:
$data = [
'title' => "AppName",
'body' => 'You have a new request from User',
'notificationData' => [
'title' => 'AppName',
'body' => 'You have a new request from User'
]
];
Below is my code for FCM I tested it on an app a while and it worked like a charm but now for some reason, it's not working, can anyone of you help?