Flutter full pdf 查看器未在 iOS 上显示 pdf适用于 Android 设备

问题描述

从他们的示例中实现了 flutter_full_pdf_viewer 1.0.6,它在 android 上运行良好,但是当我尝试在 iOS 设备上读取 pdf 文件表单 URL 时,我收到以下这个奇怪的错误

2021-03-24 16:27:01.460346+0100 MyApp[8600:951142] Flutter: reading PDF --> URL : https://firebasestorage.googleapis.com/v0/b/myapp-844ec.appspot.com/o/files%2F2021-02-16T13:21:41.799513%2F2021-03-12%2020:08:10.011890?alt=media&token=9385bf61-a864-4ba5-a431-b65891668872
2021-03-24 16:27:01.460766+0100 MyApp[8600:951142] Flutter: reading PDF --> message : a pdf-file
2021-03-24 16:27:01.979676+0100 MyApp[8600:951142] Flutter: /var/mobile/Containers/Data/Application/8276A022-584E-4C10-94F9-CA1FD0822E24/Documents/files%2F2021-02-16T13:21:41.799513%2F2021-03-12%2020:08:10.011890?alt=media&token=9385bf61-a864-4ba5-a431-b65891668872
2021-03-24 16:27:02.016330+0100 MyApp[8600:950910] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2021-03-24 16:27:02.016425+0100 MyApp[8600:950910] WF: _WebFilterIsActive returning: NO
2021-03-24 16:27:02.098093+0100 MyApp[8600:950910] [Process] 0x10e192e18 - [pageProxyID=15,webPageID=16,PID=8672] WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3,domain = WebKitErrorDomain,code = 102
2021-03-24 16:27:23.321771+0100 MyApp[8600:950910] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2021-03-24 16:27:23.326963+0100 MyApp[8600:950910] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

是否限制Web = 1;意味着我的应用程序阻止了来自网络的文件?如果是这样,我该如何更改?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)