Tech Tip - CA MAA: MAA Tooling of Hybrid Mobile Applications

Discussion created by whibr08 Employee on Jun 24, 2015
Latest reply on Oct 14, 2015 by shaka15

CA Mobile Application Analytics (MAA) Tuesday Tip by Bryan Whitmarsh, Sr Principal Technical Consultant for Tuesday, June 23, 2015

In this Tuesday tip we will walk you through how to properly equip hybrid based mobile applications with the CA MAA SDK. Hybrid mobile applications are becoming increasingly popular in today’s Application Economy. The concept of a Hybrid mobile application is to be able to leverage web development skills, such as HTML, CSS, and JavaScript programing, to build mobile applications that can be run natively on multiple mobile platforms. Cordova (formerly known as PhoneGap) and Appcelerator’s Titanium solutions are two such solutions. Both hybrid solutions allow you to build native iOS (.ipa) and Android (.apk) mobile applications from device agnostic coding. Both hybrid mobile application development approaches are supported by CA MAA but can require some modifications during the MAA SDK tooling process.

Wrapping of Android Hybrid Apps

Step 1

In some cases the console wrapping method will work for Hybrid mobile apps just as it does for native Android apps. To do this, simply take the .apk file generated by the hybrid platform and upload it in the CA MAA Console using the “APPS->ANDROID->UPLOAD A VAILD ANDROID APP” automated wrapping process. If you are returned a wrapped .apk file that will load, run, and report analytics to your CA MAA Console, you are done. If you receive any errors during this process, your app crashes on load, or you are not receiving analytics from the app, proceed to step 2.



Step 2

DOWNLOAD THE WRAPPER UTILITY by clicking on the download link on the “APPS->ANDROID screen. Additionally you will need to DOWNLOAD THE PROPERTIES (PLIST) FILE. Complete the Wrapper Utility steps 1 & 2 to unzip the utility files. Note: This wrapper utility needs to be run on a UNIX/Linux or MacOS operating system running Java 7.0.



Step 3

Rename the “android.xml” file in the wrapper_dir\emm\conf directory to “android.xml.original”, and rename the “android-cordova.xml” to “android.xml”




Step 4

Complete step 3 of the Wrapper Utility instructions to wrap the .apk file



Step 5

Load app (.apk) on a simulator/device and test


Wrapping of iOS Hybrid Apps

The hybrid application platform should build a native Xcode project. Once you have the Xcode project, open it in Xcode and follow the standard iOS Instructions on the “APPS->iOS” screen.