Giter Club home page Giter Club logo

muraliwebworld / android-app-to-integrate-push-notification-wordpress-plugin Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 492 KB

Android app code in JAVA to integrate mobile app with WordPress Push notification plugin PNFPB - Push notification for post and buddypress

Home Page: https://www.muraliwebworld.com/groups/wordpress-plugins-by-muralidharan-indiacitys-com-technologies/forum/topic/push-notification-for-post-and-buddypress/

License: GNU General Public License v3.0

Java 97.86% HTML 2.14%
android android-app firebase java mobile-app push-notification-android push-notifications pushnotification pushnotifications rest-api

android-app-to-integrate-push-notification-wordpress-plugin's Introduction

Android JAVA app code to integrate with PNFPB WordPress plugin - Push notification for Post and BuddyPress

Android app sample code in JAVA to integrate Android mobile app with WordPress push notification plugin - PNFPB Push notification for Post and BuddyPress. PNFPB plugin is designed to send push notifications using Firebase Cloud Messaging (FCM) to websites, Android/iOS mobile apps. This plugin has REST API facility to integrate with native/hybrid Android/iOS mobile apps for push notifications.

Download Push notification plugin from WordPress.org repository

https://wordpress.org/plugins/push-notification-for-post-and-buddypress/

It sends notification whenever new WordPress post, custom post types,new BuddyPress activities,comments published. It has facility to generate PWA - Progressive Web App. This plugin is able to send push notification to more than 200,000 subscribers unlimited push notifications using background action scheduler.

PNFPB plugin REST API for Android App

REST API to connect mobile native/hybrid apps to send push notification from WordPress site to both mobile apps and WordPress sites. Using this REST API WordPress site gets Firebase Push Notification subscription token from Mobile app(Android/Ios). This allows to send push notifications to WordPress site users as well as to Native mobile app Android/ios users. REST API url is https://wp-json/PNFPBpush/v1/subscriptiontoken

Integrate Native mobile apps like mobile app with this WordPress plugin

New API to send push notification subscription from Native mobile apps like mobile app to WordPress backend and to send push notifications from WordPress to Native mobile app using Firebase.

  1. Generate secret key in mobile app tab to communicate between mobile app(in Integrate app api tab plugin settings)
  2. REST api to send subscription token from Mobile app using WebView to this WordPress plugin to store it in WordPress db to send push notification whenever new activities/post are published.

Note:- All REST api code is already included in the code, below is only for reference as guide,

REST API using POST method, to send push notification in secured way using AES 256 cryptography encryption method to avoid spams

REST API url post method to send push notification https://domainname.com/wp-json/PNFPBpush/v1/subscriptiontoken

Input parameters in body in http post method in mobile APP, token โ€“ it should be encrypted according to AES 256 cryptography standards,

Using secret key generated from step 1, enter secret key in mobile app code

store token in global variable for other user Generate envrypted token as mentioned below using below coding (AES 256 cryptography encryption) Once plugin receives this token, it will unencrypt using the secret key generate and compare hash code to confirm it is sent from mobile app

Video tutorial showing how to configure Firebase for this plugin

https://www.youtube.com/watch?v=02oymYLt3qo

android-app-to-integrate-push-notification-wordpress-plugin's People

Contributors

muraliwebworld avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.