You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class WelcomeNotification extends Notification {
public function via($notifiable) {
return ['fcm'];
}
public function toFcm($notifiable) {
$message = new FcmMessage();
$message
->content([
'title' => 'Welcome to MyApp',
'body' => 'Hi there, and welcome to MyApp!',
'sound' => true,
])
->data(array('welcome' => true, 'test' => 1))
->priority(FcmMessage::PRIORITY_HIGH);
return $message;
}
}
On the user class I have:
public function routeNotificationForFcm($notification) {
return $this->fcm_device_id;
}
On tinker I just take a user $user = User::first();
and send a notification $user->notifyNow( new WelcomeNotification() );
First time, notification get sent. Then I wait some minutes, and retry $user->notifyNow( new WelcomeNotification() );
I got two different errors during the second sending (the errors spawn randomically), first is:
GuzzleHttp/Exception/ConnectException with message 'cURL error 35: Bulk data encryption algorithm failed in selected cipher suite. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'
Second is:
GuzzleHttp/Exception/ConnectException with message 'cURL error 35: A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)'
The text was updated successfully, but these errors were encountered:
Sometimes I unexpectly got two cURL errors
Here's my code:
On the user class I have:
On tinker I just take a user
$user = User::first();
and send a notification
$user->notifyNow( new WelcomeNotification() );
First time, notification get sent. Then I wait some minutes, and retry
$user->notifyNow( new WelcomeNotification() );
I got two different errors during the second sending (the errors spawn randomically), first is:
Second is:
The text was updated successfully, but these errors were encountered: