SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     function laporandarurat(Request $request){
  3.         $notificationBuilder = new PayloadNotificationBuilder('Darurat');
  4.         $notificationBuilder->setBody('Hello world')
  5.                             ->setSound('default');
  6.  
  7.         $notification = $notificationBuilder->build();
  8.  
  9.         $topic = new Topics();
  10.         $topic->topic('news');
  11.  
  12.         $topicResponse = FCM::sendToTopic($topic, null, $notification, null);
  13.         if($topicResponse->isSuccess()){
  14.            
  15.         }else{
  16.            
  17.         }
  18.  
  19.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top