0
我正在構建xamarin.forms應用程序,我打算在web視圖(iOS)中加載asp.net mvc應用程序。這是我的代碼。Xamarin Webview無法正常工作
WebView webview = new WebView();
webview.Source = new UrlWebViewSource
{
Url = "https://hrworksplus.com/test/test.html"
};
MainPage = new ContentPage
{
Content = webview
};
當我把我的應用程序的URL,模擬器不加載任何東西,但如果我給google.com的鏈接,在正確的工作完全正常了。任何想法會是什麼問題,我的web應用程序在瀏覽器中工作。
問候 TA
仔細檢查輸出日誌,看看是否有任何錯誤(沒有足夠的)安全連接。爲了驗證,把它放在你的'info.plist'文件中; ' NSAppTransportSecurity \t NSAllowsArbitraryLoads \t '。如果它加載,那麼您的站點SSL連接出現問題。 –