alexrainman / ModernHttpClient

ModernHttpClient
MIT License
126 stars 28 forks source link

MissingMethodException Method 'ModernHttpClient.NativeMessageHandler..ctor' not found. #9

Closed kpespisa closed 6 years ago

kpespisa commented 6 years ago

I had to remove the minimumSSLProtocol parameter on the NativeMessageHandler constructor in NSUrlSessionHandler.cs to get this working on iOS. I assume it is due to the signature being different than the library's constructor?

However, I only did this in iOS and did not need to change anything on my Android project.

kpespisa commented 6 years ago

I created a small example. I'm using Xamarin.IOS and Visual Studio for Mac, in case that is part of the issue. MHCTest.zip

michaelgobbers commented 6 years ago

I'm having the same issue.

alexrainman commented 6 years ago

Ctor signature has been different since this plugin was originally created. This is something else.

alexrainman commented 6 years ago

I think this is related to the fact that my netstandard support is not working as expected. I am migrating the plugin to a multi-target project.

alexrainman commented 6 years ago

Version 2.7.0 has been released. Please test.

kpespisa commented 6 years ago

This issue still exists in 2.7.0. You can reproduce the issue if you download the example project (MHCTest.zip) and update the nuget package in the projects.

alexrainman commented 6 years ago

Somehow the plugin is not working as expected in .netstandard with the original architecture from Paul. Going to migrate it to default Xamarin plugin Lazy load style.

alexrainman commented 6 years ago

Fixed