I would like to share my experience using the Mobile Services in Bluemix (bluemix.net), IBM's Platform as a Service offering.
To create a mobile app, I clicked on the Mobile Cloud boilerplate service in the Bluemix Catalog and provided a name for my application.
Bluemix then instantiated the app by calling IBM’s underlying Softlayer Infrastructure as a Service product. It created the application framework, bound the application to three Mobile Services, namely Mobile Cloud, Push and Mobile Application Security and the app was up and running within a few minutes.
Bluemix provides a “Starting Guide” with steps on how to log in to Bluemix and deploy the application.
I used this “Guide” to download Eclipse with the ADT plugin and Android SDK. I then imported a sample application project, named bluelist-android-mobiledata into Eclipse. This sample application allows me to create a grocery list and share it with my family and friends on any Android mobile device. I have the choice to download an iOS SDK and run the sample application on any device running MacOS
The only code change I had to do was to initialize the SDKs with Application ID, Application Secret and Application Route, as shown here:
// initialize the IBM core backend-as-a-service
// initialize the IBM Data Service
With this change, I can now store, sync and secure mobile data in the Cloud. It is that simple.
I have hosted my bluelist-android-mobiledata project on the IBM DevOps IDE in the Cloud, https://hub.jazz.net/git/kapoor/mobilecloudpoccode. Please click on “Edit Code” tab on the top right corner to view the README.md file, You can run my app on any Android device by adding the following three values in the bluelist.properties file under “assets” folder in bluelist-mobiledata-android project:
Right now anyone running this application on an Android device can update the grocery list. In a future blog post, I will provide steps to add Google+ Authentication and Worklight+ Authentication so only authorized users can update your grocery list.
I hope you will have your mobile application running in Bluemix soon.