cordova - android 7 及更高版本中的“通过 Intent.getData() 暴露在应用程序之外”错误
问题描述
当我要在 android 7 及更高版本中打开 pdf 文件时,我遇到了错误。我正在使用 Cordova-file-opener2 插件。
解决方案
我遇到了同样的问题。使用这个插件
<plugin spec="https://github.com/tectronik/cordova-plugin-file-opener2-tectronik.git"/>
推荐阅读
- sql-server - 了解为什么我的 CAST to INT 不起作用
- react-native - 在 UIManager 中找不到 React Native PDF View “PDFView”
- django - 如何修复我的 Django“ValueError: Found wrong number (0) of constraints”迁移错误?
- javascript - 为什么函数在明确被告知返回 true 时返回 undefined?
- error-handling - 如何检测three.js在渲染过程中何时抛出错误?
- git - 如何在 Git 中将 \r 或 CR 设置为行尾?
- rust - 将空字符文字映射为返回值
- api - 如何通过 fastify 调用第三方 API 数据?
- r - 将风险比值(和置信区间)留在 metafor 包中的 forest() 中
- swift - 更新到 watchOS 6 后,Scrollviews 停止工作,有什么变化吗?