Firebase Push Notification Using PHP cURL
Send Firebase Push Notification via PHP cURL
- PHP cURL
- POST Method
- Firebase Cloud Messaging API
- FCM Token
- Bootstrap 4
Firebase Web Push Notification for Blogs and website - Create Web Push Notification using Firebase Cloud Messaging
// Server key from Firebase Console
define( 'API_ACCESS_KEY', 'YOUR FIREBASE CLOUD MESSAGING API KEY' ); // Replace YOUR FIREBASE CLOUD MESSAGING API KEY with your Firebase Cloud Messaging server Key
"icon" => "https://example.com/icon.png", // Replace https://example.com/icon.png with your PUSH ICON URL