Search code examples
maximo-anywhere

Using a .tpk file results in an app crash


I'm attempting to use a .tpk file with Maximo Anywhere Work Execution on Android 6, but I'm experiencing an application crash when trying to access the Map view.

LogCat shows that the code recognises and processes the .tpk but then produces the error:

11-02 12:46:19.873: W/System.err(8251): java.lang.ClassNotFoundException: 
org.apache.cordova.geolocation.GeoBroker

I've rebuilt the APK and updated Mobilefirst Studio to the latest IFIX version but this doesn't seem to help. Am I missing something?

Maximo Anywhere 7.6.1 Mobilefirst Studio 7.1.0.00-20171026-1607


Solution

  • mobilefirst team have changed way to use gps in ifix from 2017. Basically they removed org.apache.cordova.geolocation.GeoBroker. On Anywhere 762HF we have applied necessary fixes to support recent ifix. Suggestion is remove GeoBroker from config.xml file:

    <feature name="Geolocation">
            <param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" />
        </feature>
    

    You will find this config file into appName/android/native/res/xml folder.

    Make sure that you have into this config.xml the new element used to provide gps feature, that is:

    <feature name="WLGeolocationPlugin">
            <param name="android-package" value="com.worklight.androidgap.plugin.WLGeolocationPlugin"/>
        </feature>
    

    Let me know if this is enough to fix your problem.

    Best Regards.