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 Perbaiki error Class ‘KintKint’ not found Php Codeigniter ariefendi - April 5, 2020 0 Membuat system login website menggunakan php dan html Html & Css ariefendi - Februari 11, 2020 0 10 Menit membangun sebuah website Siap pakai Membuat Website ariefendi - Februari 10, 2020 0 Cara membuat website desa gratis menggunakan Opensid Membuat Website ariefendi - Maret 31, 2020 0 Tutorial arahkan domain tld ke blogspot blog ariefendi - Februari 11, 2020 0 POPULAR CATEGORIESTutorial & Pengetahuan22Pemrograman19Membuat Website14CodePaste9Php Native9Android7