I need to intagrate MobileIron SDK in Android app. The app use Retrofit library. But MobileIron documentation says:
HTTP Redirect for HTTP Tunneling is not supported for the following classes (which do support HTTP Tunnel)
- java.net.HttpURLConnection
- java.net.ssl.HttpsURLConnection
- AndroidHttpClient
and
HTTP Tunneling when using non-standard libraries such as the following:
- com.squareup.okhttp.HttpClient
- Apache HttpClient library that has been repackaged under the ch.boye.httpclientandroidlib package
How can I replace Retrofit in app, if documentation says, that I can not using HttpURLConnection ?
I think you may use MobileIron AppConnect 7.5.4 for your Retrofit library, since Retrofit library depends on OkHttp API.
Supported APIs
An AppConnect app can use HTTP/HTTPS tunneling only if the app accesses the enterprise server using one of the following APIs:
- java.net.HttpURLConnection
- java.net.ssl.HttpsURLConnection
- Android HttpClient
DefaultHTTPClient, using the standard Apache HttpClient library with the org.apache.http.package name
Note: HTTP/S tunneling is not supported with non-standard libraries such as the Apache HttpClient library repackaged under the ch.boye.httpclientandroidlib package.
OkHttpClient
- ModernHTTPClient in apps built with the Xamarin development platform.