Plugin / All push notification for WP

Description

Description

All push notifications for WP is useful plugin to send push notification to iOS and Android devices using WordPress integration.User can send push notifications to iOS and Android with custom Editor from wp-admin and even When admin publish a new post/page and even new comment is added to any post.

Key Features

All push notifications for WP supports following environments:

  • Apple Push Notification service (APNs)
  • Google Cloud Messaging (GCM)
  • Firebase Cloud Messaging (FCM)

By using this plugin you can:

  1. Send push notification to WordPress users selectively.
  2. Send push notification to users when new post is published or when new comment is added to the post (administrator user)

Important note

To send push notification to android devices, you will need API Key from Google GCM platform.

To send push notification to ios devices, you will need pem certification file from Apple APNs.

For registering any device / user for push noficiation, it is required to integrate ‘register’ api in mobile application. Register API is part of the plugin only i.e. it is not third party API. It also means that all device token data is maintained in your wordpress application database only. Its basic use is to gather device token of respective iOS and Android devices so that push notifications can be sent from wordpress. More details about the same has been given in FAQ section.

From the device app, it is required to send additional headers information so that device is recognized by Google Cloud Messaging (GCM) and Apple Push Notification service (APNs)

Following headers are required:

  1. device_token: It will be the unique identifier provided by operating system to device.
  2. os_type: The type of device os – Use android for Android and ios for iOS devices.

Arbitrary section

Que) How to implement the device token and os type. Is it in the web header source code OR in the app source code? . Need example API URL?S and parameters to register the device_token.

Ans -Please follow the below steps to achieve the pushnotificaiton in your mobile devices successfully

- Activate Push Notifications for WP through the Plugins menu in WordPress.when you active the plugin the plugin will add 2 new tables in your wordpress database like 'all_pushnotification_logs' , 'all_pushnotification_token' . Please make sure that those tables are exist in your current activated Database.

- Set the settings as per your requirement through wp-admin part of plugin.

- please add FCM/GCM key if you want to pushnotification for android and Please upload the .pem certificate if you want pushnotifcaiton for ios.plese refer http://stackoverflow.com/questions/21250510/generate-pem-file-used-to-setup-apple-push-notification for .pem file.


Now , 

- There are two main aspects first - wordpress website which run on desktop / laptop  which have a wp-admin.  Second - the application which you created for mobile devices with ios/android.

 - To send a push notification to a device, we must need to know its token (or Device ID) which has to be provided by the app through this API. And the type of operating sytem which mobile is useing .

 - For Registering a device you need to follow steps.

 - First of all you have to insert the mobile device type and mobile device token of each devices in this table. For that you need to  pass the device type and devices token in parameters from your application services like login  , register service to the URL " http://yourwordpresssite/apnwp/register " . It means whenever user register or login from your application you need to pass that particular mobile's token and mobile operation system type android / ios.

 - 'wp-json' or 'WordPress REST API'  that shipped as part of WordPress core from version 4.4 Later. 

URL structure:

http://yourwordpresssite/wp-json/apnwp/register

Method:  GET

Parameters:
device_token (string): token given by APNs or FCM identifying the device, often called device ID.
os_type (string): operating system. It must be ios or android (case sensitive).
user_email_id (string, optional): the user email address which is login from your mobile app.

Examples:

http://yourwordpresssite/wp-json/apnwp/register?os_type=android&[email protected]&device_token=1234567890


Refere Document:

- more details how to pass the parameters in Android -  https://www.codementor.io/flame3/tutorials/send-push-notifications-to-android-with-firebase-du10860kb

- more details how to pass the parameters in ios - https://www.raywenderlich.com/123862/push-notifications-tutorial

- After passing the parameters when user successfully register or login please check the database table `all_pushnotification_token` and check the token and OS type is inserted successfully or not.<h3>Translations</h3>

* English – default, always included

Ratings

5
3 reviews

Rating breakdown

Details Information

Version

1.5.3

First Released

23 Aug, 2016

Total Downloads

6,215

Wordpress Version

4.4 or higher

Tested up to:

4.7.15

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.