Push Notification to delete local data oham Dasgupta

Posted: May 7, 2016 in JDeveloper & ADF, Mobile
Tags: , , , , , , , ,
 

clip_image002Power of PUSH

In this blog I will explain how you can use Push Notification to delete data saved in local SQLLite database.
What I’ll explain :

  1. Simple MAF app, which will create a table and put some data in it while loading for the first time.
  2. It will have one page to display the data stored in the local database.
  3. I will configure MCS to send Push notification to the MAF app.
  4. On receive the MAF app will fire a delete statement to remove all the data form local database.

Requirements :

  1. MAF 2.2
  2. MCS or any push server

GitHub link : https://github.com/sohamda/PushAndDelete/

The basic architecture of this solution is :

Step #1 : Configure MCS Backend with Google Project ID and Prepare your MAF code

You need to create a Google project and enable messaging API. Then configure the MCS backend with the details. Then create your MAF application to register with MCS to receive push notifications.

You can find all the steps here

Step #2 : Create table and add sample data while app loaded for the first time

Add a DB script to create a table and add some sample data, put the script inside ApplicationController > META-INF Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s