2015-10-13 85 views

回答

5

安裝Google Play Services - Safety Net
並調用

if (Android.OS.Build.VERSION.SdkInt <= BuildVersionCodes.Kitkat) 
{ 
    ProviderInstaller.InstallIfNeededAsync(ApplicationContext, this); 
} 

InstallIfNeeded將使tls1.1+使用。每個應用程序啓動需要一次。 接下來 - 您需要使用原生HttpMessageHandler用於HttpClient,請參閱ModernHttpClient

+0

您的解決方案完美無缺!非常感謝。你有任何建議強制webview使用ModernHttpClient? – wolfprogrammer

+0

@twolf你在哪裏打電話給這個? – Kush

+1

@Kush我在繼承自Application(android.app.Application)的類的構造函數中調用它一次。 – wolfprogrammer