IBM Support

Building Maximo Anywhere applications for the Android 28 API

How To


Summary

Due to new validation from Google you are now unable to build applications with an API Level Lower then 28 and upload to an enterprise play store. The below steps are required to update and build Maximo Anywhere applications that are compatible with Google Play.

Objective

To build the Maximo Anywhere applications to run with Android API Level 28 for using with the Google Play store.

Steps

To build your Maximo Anywhere applications at the Android 28 API level the following steps must be taken.  Before beginning ensure your MobileFirst 7.1 Interim Fix is dated at least MFPF-IF201903191506
1. Install the Android 28 SDK

2. Update the build.properties to and set Android_TARGET_DEVICE_NAME to android-28  

    e.g  Android_TARGET_DEVICE_NAME=android-28
3. Open the AndroidManifest.xml  in MaximoAnywhere\apps\{appname}\android\native folder
If you are not using secured communication to the MobileFirst server (SSL)  android:usesCleartextTraffic="true" must be added to the application tag.  If you are securing your traffic you can skip this step.
Search for 
<application android:allowBackup="true" android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
Update to
<application android:allowBackup="true" android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:usesCleartextTraffic="true">
4.  In the same file under the above application tag add the following line.
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
4. Open the build.gradle file in the same directory and search for targetSdkVersion update the value to 28 as seen below. 
    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 28
        multiDexEnabled true
5. Rebuild your applications.
Please contact support if you have any issues. 

Related Information

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSPJLC","label":"Maximo Anywhere"},"Component":"","Platform":[{"code":"PF003","label":"Android"}],"Version":"7.6.2.1;7.6.3;7.6.3.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
23 October 2019

UID

ibm11097487