CA Mobile Application Analytics (MAA) Tuesday Tip by Bryan Whitmarsh, Sr Principal Technical Consultant for Tuesday, June 23, 2015
Wrapping of Android Hybrid Apps
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.
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.
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”
Complete step 3 of the Wrapper Utility instructions to wrap the .apk file
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.