Push Notification FCM

0

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 notification

Version
Last updated
Active installations
WordPress Version
Tested up to
PHP Version
Rating
Total ratings
Tags
This plugin is outdated and might not be supported anymore.

Description

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!

REST API Endpoints

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 plugin
  • device_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 plugin
  • device_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.