This repository showcases a simple and effective script to send push notifications to Android devices using Firebase Cloud Messaging (FCM). Designed for developers, the code provides a quick setup for integrating FCM notifications with minimal configuration.
- Lightweight PHP implementation.
- Customizable notification content, including title, body, and icons.
- Detailed documentation for ease of use.
- Replace
YOUR-SERVER-API-ACCESS-KEY
with your FCM server key from the Google API Console. - Pass the device's registration ID via a GET request to the script.
- Execute the script to deliver the notification.
http://yourdomain.com/PhpFireBaseNotificationSample.php?id=DEVICE_REGISTRATION_ID
@kamal-nyaupane
If you are talking about Android, then I think we have the same issue. Go to Settings -> Developer Options and look for "Show notification channel warnings". I think this option is only available on Android 8. Enable it and test it again. If you see something like "failed to post notification on channel 'null', then you do have the same issue as what I have.
Android 8 have this new feature for notification which can be assigned to a channel ID.
I Google this for the entire day and tried several recommendation, but unfortunately I am still trying to find the solution to this.