fcm icon indicating copy to clipboard operation
fcm copied to clipboard

how we send web notification using the setWebPush plz guide me

Open salmansafdar778 opened this issue 2 years ago • 1 comments

how we use this function setWebpush(NotificationChannels\Fcm\Resources\WebpushConfig $webpushConfig)

what's the $webpushConfig?

salmansafdar778 avatar Jul 08 '22 10:07 salmansafdar778

public function toFcm($notifiable) 
     { 
         return FcmMessage::create() 
             ->setNotification( 
                 \NotificationChannels\Fcm\Resources\Notification::create() 
                     ->setTitle('Excel uploading status') 
                     ->setBody($this->data['type'] . ' data uploading failed!') 
                     ->setImage('imageUrl') 
             ) 
             ->setWebpush( 
                 WebpushConfig::create() 
                     ->setFcmOptions(WebpushFcmOptions::create()) 
             ); 
}

lianmaymesi avatar Jul 21 '22 04:07 lianmaymesi