Integrating Airwatch ADK

Integrating Airwatch ADK

  

Hi,

I have a requirement to install the Airwatch ADK to Outsystems.

After following the steps here, the iOS app generates successfully. 

However, when generating the android version, it throws the error 

"Error: Error installing Cordova plugin: com.airwatch.awsdkplugin." in the mobile logs

There is no other error message in the general logs etc. 

To see if its an issue with the plugin, I created using an empty cordova project, added the plugin and built the android build. It built successfully.  

Has anyone came across this before?

Its seems like the following set of codes in plugin.xml is giving issues. Would anyone be able to know what is not supported?


<config-file target="res/xml/config.xml" parent="/*">
                <feature name="AirwatchSDK">
                    <param name="android-package" value="com.airwatch.cordova.sdkplugin.AirwatchSDKPlugin"/>
                    <param name="onload" value="true"/>
                </feature>
        </config-file>

        <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
                <application android:name="com.airwatch.cordova.sdkplugin.AWCordovaApplication"/>
        </edit-config>

        <edit-config file="AndroidManifest.xml" target="/manifest/application/activity" mode="merge">
                <activity android:name="com.airwatch.gateway.ui.GatewaySplashActivity"/>
        </edit-config>

        <config-file target="AndroidManifest.xml" parent="/*">
            <uses-permission android:name="android.permission.WAKE_LOCK"/>
            <uses-permission android:name="android.permission.INTERNET"/>
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
            <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
            <uses-permission android:name="com.airwatch.email.permission.ACCESS_PROVIDER"/>
            <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
            <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
        </config-file>

        <config-file target="AndroidManifest.xml" parent="application">
            <activity android:name="com.airwatch.cordova.sdkplugin.AWCordovaActivity"
                      android:theme="@style/Theme.AppCompat">
            </activity>
        </config-file>