anaisbetts / ModernHttpClient

HttpClient implementations that use platform-native HTTP clients for :rocket:
MIT License
659 stars 261 forks source link

Not supported by Mobile Iron in Android #176

Open alexrainman opened 9 years ago

alexrainman commented 9 years ago

Hi there,

Is it possible to use a different message handler in Android?

One of these will be ok:

java.net.HttpURLConnection java.net.ssl.HttpsURLConnection Android HttpClient DefaultHTTPClient, using the standard Apache HttpClient library with the org.apache.http.package name.

Cheers!

Cheesebaron commented 9 years ago

Ehm? Why?

alexrainman commented 9 years ago

They say OkHttp is not standard. We are making a ticket requesting it so, we keep using Xamarin best practices to share http calls related code.

csunwold commented 9 years ago

Who is they? Did someone from Xamarin specifically tell you not to use OKHttp or are you going strictly off documentation.

Using ModernHttpClient as is is almost a de facto standard given the wide number of Xamarin apps using it.

On Wed, Aug 12, 2015, 4:56 AM alexrainman notifications@github.com wrote:

They say OkHttp is not standard. We are making a ticket requesting it so, we keep using Xamarin best practices to share http calls related code.

— Reply to this email directly or view it on GitHub https://github.com/paulcbetts/ModernHttpClient/issues/176#issuecomment-130272023 .

alexrainman commented 9 years ago

When i said "they" i was talking about Mobile Iron. They dont support OkHttp on their wrapping technology for Android.

alexrainman commented 9 years ago

Guys, any idea on how to get message handler for one of those clients from PCL? I mean, i can implement an interface to implement in android and return me the handler ...

anaisbetts commented 9 years ago

No, this is not possible. Either use the built-in Xamarin HttpClient or uh stop using this terrible wrapper and giving this company money

Coruscate5 commented 8 years ago

this issue can be closed - MobileIron now supports OkHttpClient (& ModernHttpClient). They don't however support certain abstractions on top of it (React native being one of them).

I'm in unsupported territory, so whether or not my implementation actually works would be irrelevant for this issue

alexrainman commented 8 years ago

Yes, we wroked closely with MobileIron to provide support for OkHttp.

juvenull commented 7 years ago

alexrainman, I have a similar problem. what the solution?

alexrainman commented 7 years ago

Well right now its compatible. We worked with MobileIron to make OkHttp compatible with their tunneling technology so you should be ready to go.