|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 50%||Total: 586 ||All time: 5,248 This week: 163|
This class can notify users of Google Firebase Cloud Messaging (FCM).
It can take an array of identifiers of Android devices and sends a push notification to all of them by sending a HTTP request to the API of FCM.
The request passes parameters that defines message the title, sub-title, ticket text, and whether the device should vibrate or sound.
|When applications need to send push notifications to Android devices, they can use Google APIs for that purpose.
Previously Google provided the Cloud Messaging API. Now developers can use the Firebase Messaging API for the same purpose. This class is able to use that API to send push notifications to Android device users.
A php wrapper to send push notifications using Google's FCM
$push = new sendNotif();
$push->set_rid($rids); //Where $rid is an array of registration ids, atleast one is required
$push->set_msg($title, $msg, $subtitle = null, $ticketText = null, $vibrate = true, $sound = 1);
//You can also use a message array, check the code or FCM documention for the array format
$response = $push->send();
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.