Beranda Pemrograman CodePaste php send fcm android notification PemrogramanCodePasteFunctionPhp Native php send fcm android notification Penulis ariefendi - Maret 21, 2023 PHP fcm_send <?php $keyfcm = 'FCM_KEY'; $user_token = 'USER_TOKEN'; $senderdata = array( 'data' => [ 'title' => 'Sample title', 'message' => 'Sample message', 'custom_data' => 'Value Sample Data' ], 'to' => $user_token ); $curl = curl_init(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://fcm.googleapis.com/fcm/send'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Authorization: key=' . $keyfcm )); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($senderdata)); $response = curl_exec($ch); $err = curl_error($ch); curl_close($curl); php push fcm php send fcm android notification php mengirim fcm php mengirim notifikasi android php firebase BERITA TERKAITDARI PENULIS Android Example retrofit upload file CodePaste Php auto create mail on cpanel whm, Php membuat email otomatis di cpanel whm CodePaste Auto create subdomain php cpanel, Membuat subdomain otomatis di cpanel whm POPULAR ARTICLES Tutorial build apk di android studio Android ariefendi - April 8, 2020 0 Tutorial install android studio pada windows Android ariefendi - Maret 21, 2020 0 Php Menampilkan file list dari folder disertai paging Membuat Website ariefendi - September 11, 2020 0 Source code marketplace mirip bukalapak gratis Cms Gratis ariefendi - September 13, 2020 0 Tutorial install codeigniter untuk pemula Membuat Website ariefendi - April 4, 2020 0 POPULAR CATEGORIESTutorial & Pengetahuan22Pemrograman19Membuat Website14CodePaste9Php Native9Android7