Simple FCM plugin for push notifications on Android & iOS devices. Easy integration, REST API endpoints for device registration & more!
Introducing you a simple and easy-to-use framework plugin for Firebase Cloud Messaging (FCM) primarily intended for Android and iOS developers, that allows you to send push notifications to all Android and iOS devices worldwide. With our plugin, integration and use are a breeze.
Simply install the plugin, enter your Firebase Server (API) key in the settings, generate a site key, and select the types of posts for which you want to send notifications.
Our plugin also includes REST API endpoints, which are used to register and deregister devices with your site when the mobile application is launched or deleted. Once a device is registered, it will receive notifications every time a new article or page is published in the selected post types. Don’t miss out on important updates, try our FCM plugin today!
In order to send push notifications to a device, the device’s unique identification (ID) and token need to be recorded in the site’s database. To accomplish this, the plugin provides two REST API endpoints: one for subscribing a device when the mobile application is installed or launched, and another for unsubscribing a device when the application is deleted. These endpoints allow the site to keep track of which devices are registered to receive notifications and which are not.
Subscribe device:
https://example.domain/wp-json/fcm/pn/subscribe
Parameters:
rest_api_key
(required) – Unique generated site key provided by the plugindevice_uuid
(required)device_token
(required)subscription
(required) – This would be the some category name in which the device is registered, if there is no category exists in WordPress it’ll be created automatically.device_name
(optional)os_version
(optional)Returns JSON:
{
"error": false,
"message": "Device token registered",
"subscription_id": 123
}
Unsubscribe device:
https://example.domain/wp-json/fcm/pn/unsubscribe
Parameters:
rest_api_key
(required) – Unique generated site key provided by the plugindevice_uuid
(required)Returns JSON:
{
"error": false,
"message": "The device token was successfully removed"
}
This plugin is a free and open-source software, which means that it can be used in any WordPress installation without any cost and can be modified as per the requirement.
– Before using the plugin, make sure that you have a Firebase project set up and that you have your Firebase Server (API) key.
The plugin requires a unique generated site key, which can be obtained by accessing the plugin settings page after installation.
The plugin allows you to select the types of posts for which you want to send notifications, so you can choose to only send notifications for certain types of content.
The plugin uses REST API endpoints to register and deregister devices, so it is important that your mobile application is able to communicate with these endpoints.
The plugin is compatible with both Android and iOS devices.
The plugin provides a way to send push notifications to all the devices that are registered for the particular category of the post.
Before sending the push notifications to the device, the plugin checks if the device is still registered or not.
The plugin is compatible with the latest version of WordPress, however, make sure to check the version compatibility before installing the plugin.
The plugin can be customized as per requirement, since it is open-source software.
To install the “Push Notification FCM” plugin via the WordPress admin dashboard, please follow these steps:
Note: Make sure that the plugin is compatible with your version of WordPress.
The “Push Notification FCM” plugin is a simple and easy-to-use plugin for WordPress that allows you to send push notifications to all Android and iOS devices worldwide, using the Firebase Cloud Messaging (FCM) system.
To install the plugin, you can either download it from the WordPress plugin repository or upload it to your WordPress site via the “Plugins” section in the WordPress dashboard. Once installed, you will need to activate the plugin and enter your Firebase Server (API) key, generate a site key, and select the types of posts for which you want to send notifications.
The plugin provides two REST API endpoints: one for subscribing a device when the mobile application is installed or launched, and another for unsubscribing a device when the application is deleted. These endpoints allow the site to keep track of which devices are registered to receive notifications and which are not.
Yes, the plugin is a free and open-source software, which means that it can be used in any WordPress installation without any cost and can be modified as per the requirement.
You can subscribe or unsubscribe devices for push notifications using the REST API endpoints provided by the plugin. The endpoints require specific parameters, such as the device’s unique identification (ID) and token, as well as a unique generated site key provided by the plugin.