In this blog I will explain how you can use Push Notification to delete data saved in local SQLLite database.
What I’ll explain :
- Simple MAF app, which will create a table and put some data in it while loading for the first time.
- It will have one page to display the data stored in the local database.
- I will configure MCS to send Push notification to the MAF app.
- On receive the MAF app will fire a delete statement to remove all the data form local database.
- MAF 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.
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.
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.