简体   繁体   English

可以渐进式 web 应用程序访问 android 文件系统

[英]Can progressive web apps access android file system

I see there are a lot of articles about the restrictions imposed on javascript in windows chrome.我看到有很多关于 windows chrome 中对 javascript 的限制的文章。 It can't access the file system of a user without the user himself uploading it to the server of the pwa.如果没有用户自己将其上传到pwa的服务器,它就无法访问用户的文件系统。 But I see none about javascript running on android chrome.但我看不到在 android chrome 上运行的 javascript。 Are there the same restrictions on javascript in android chrome as that of windows? android chrome对javascript的限制是否与windows相同? For example I open a pwa on my chrome, suppose telegram, so will telegram be able to access my files like my photos, videos, documents, etc without my permission?例如,我在我的 chrome 上打开一个 pwa,假设电报,那么电报可以在未经我许可的情况下访问我的照片、视频、文档等文件吗? Ik it can't happen on windows.它不会发生在 windows 上。 Javascript aside, is there any way for a pwa to access the files on my android storage without my permission?除了 Javascript,pwa 有什么方法可以在未经我许可的情况下访问我的 android 存储中的文件? Thank you.谢谢你。

You can try to use Writable File System APIs for this.您可以尝试为此使用可写文件系统 API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM