- Notifications
You must be signed in to change notification settings - Fork22
A simple Codeigniter 3 library for Firebase Cloud messaging
License
NotificationsYou must be signed in to change notification settings
ImWizeon/Codeigniter-FCM-Library
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple codeigniter library for Firebase Cloud messaging.
This is a very simple implementation of firebase cloud messaging library for codeigniter 3.*
Put the config file in theapplication/config folder.
Similarly copy theFcm.php file to the codeignitersapplication/libraries folder.
public function sendNotification(){ $token = 'Registratin_id'; // push token $message = "Test notification message"; $this->load->library('fcm'); $this->fcm->setTitle('Test FCM Notification'); $this->fcm->setMessage($message); $json = $this->fcm->getPush(); $p = $this->fcm->send($token, $json);}Examples are in theexample_controller.php file.
About
A simple Codeigniter 3 library for Firebase Cloud messaging
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.