Skip to main content

Posts

Showing posts from January, 2016

Push Notification to delete local data

Power 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 : 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. Requirements : 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. You can find all the steps here : http://adfjava.blogspot.in/201