Skip to main content

Posts

Showing posts with the label mcs

Push Notification for Andriod MAF application via MCS

Part 1 : Configure MCS Backend with Google Project ID Step #1: Register yourself for Google Cloud Messaging : There are several tutorials available online to guide you to do this. Some examples : http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ https://mixpanel.com/help/reference/android-push-notifications Once you have registered there are 4 things which are important and will be used in later part of this blog : Project Number Browser API Key Name Make sure the "Google Cloud Messaging for Android" is enabled for this Project.  Step #2 : Configure MCS backend with the Step#1 details Create an Mobile Backend. Then go to your Mobile Backend Settings page. There will be a default Client Application created for you. Click on Edit and do the following. In the above picture Application Name and ID = Google Project Name API Key = Google Browser API Key Sender ID = Google Project Number Now...

WeatherApp with MAF using MCS

Pre-requisites/Assumptions : MAF version : 2.1.3 mafmcsutility.jar exists in the classpath of the application. Two REST API build and exposed from Oracle Mobile Cloud Service(MCS). This application is available on GitHub and can be downloaded and run from your own machine. This application uses 2 APIs created and exposed in MCS /mobile/custom/WeatherAPI/getweather?country=<CCC>&city=<AAA> /mobile/custom/WeatherAPI/getCities?country=<CCC> Part 1 : talks about creating the Mobile Backend on MCS : http://adfjava.blogspot.in/2015/10/weatherapp-with-maf-using-mcs-part-1.html GitHub application can be found on : https://github.com/sohamda/WeatherApp/  Following sections, I will talk a bit about maf-application.xml Datacontrol  Taskflow Javascript to enable device back button You can download the Github project and check the whole source code in JDeveloper 12.1.3 maf-application.xml : I have defined the MCS connection detail...