Xamarin.Forms 在 webview 中打开来自 https://docs.google.com/viewer?url=pdf 的 url

Posted

技术标签:

【中文标题】Xamarin.Forms 在 webview 中打开来自 https://docs.google.com/viewer?url=pdf 的 url【英文标题】:Xamarin.Forms opening url from https://docs.google.com/viewer?url=pdf in webviewXamarin.Forms 在 webview 中打开来自 https://docs.google.com/viewer?url=pdf 的 url 【发布时间】:2021-12-28 03:14:57 【问题描述】:

将 xamarin.forms 更新到版本 5.0.0.2196 后。通过链接 https://docs.google.com/viewer?url=pdf 加载到 webview 的文档中的链接不起作用。 WebView.Navigating 事件不会触发。

【问题讨论】:

【参考方案1】:

这里有一些正常的建议给你

    Xamarin.Forms 更新到最新的(5.0.0.2244) 以查看问题是否仍然存在。

    将网址更改为https://drive.google.com/viewerng/viewer?url=0

参考

https://docs.microsoft.com/en-us/answers/questions/383713/xamarin-forms-issue-with-showing-a-pdf-files-using.html.

【讨论】:

以上是关于Xamarin.Forms 在 webview 中打开来自 https://docs.google.com/viewer?url=pdf 的 url的主要内容,如果未能解决你的问题,请参考以下文章

Xamarin.Forms 在 webview 中打开来自 https://docs.google.com/viewer?url=pdf 的 url

最新 iOS 更新 (12.2) 后,本地存储中的视频未在 WebView (Xamarin.Forms) 中播放

Xamarin Forms WebView:滚动到 HTML 文档的底部

Xamarin.Forms中为WebView指定数据来源Source

CSS Id 选择器阻止所有内容在 Android 10 上的 Xamarin.Forms WebView 中显示

在 Xamarin.Forms PCL 中使用自定义 WebView 渲染器处理超链接