Mobile Apps Monitoring with IBM Bluemix

One of the great capabilities of Bluemix is that developers can see information about how their mobile apps are used in a server side dashboard. This includes usage statistics, network traffic and devices types as well as client side logs. Being able to see logs from all mobile devices is very useful since physical access to devices is obviously hard and sometimes not possible.

In order to use this functionality Bluemix provides the Mobile Client Access service and SDKs for iOS, Android and hybrid apps.

The service Mobile Client Access was recently renamed and supports now Android as well as iOS. In order to register mobile apps to connect the client apps with the server backend, the app GUID is now configured in the Bluemix app rather than in a particular service.

I use the logging functionality in the sample app Hear the Buzz. After including the SDK for iOS you can use the IMFLogger APIs from both Swift and Objective-C. For example via logInfoWithMessages you add logs and via sendPersistedLogs logs are sent to Bluemix. Here is a screenshot of the dashboard (still using the old service name).

To learn more read the documentation and watch the video from Andrew Trice.

  • Dalvik

    Very cool.

    Can you add some details on 3rd party tool support?

    I’ve used PhoneGap up until now but recently started paying around with Codename One now that they have PhoneGap support and it looks very interesting. It is missing these sort of capabilities though.

    • http://tricedesigns.com/ Andrew Trice

      I have never heard of Codename One before, so I don’t know much about
      it… Let’s start with “plain” CodeName One: it looks like they take
      Java and compile down to bytecode that runs inside of a proprietary
      virtual machine. In theory, the MobileFirst/Bluemix Android SDK might
      work. However, there could be dependency issues on Android libraries,
      so I do not know with any certainty.

      Now, Codename One Cordova: I think you could use the older Mobile Application Security service, but Codename One will not support the latest Mobile Client Access service. The Bluemix Mobile Client Access service does not *yet* support hybrid apps, and does not have a pure JS SDK, so that is not an option. The older Mobile Application Security service (precursor to Mobile Client Access) does have a pure JavaScript SDK that could work: http://mbaas-gettingstarted.ng.bluemix.net/javascript However I have not tested this configuration, and do not know if there are any compatibility issues. The Mobile Application Security service also has a hybrid SDK, but that will probably not work because it requires specific Cordova plugins to be enabled.

      • Dalvik

        Thanks!
        I’ll try playing around with these.