简体   繁体   English

在ios4设备上创建和安装移动Safari插件

[英]Creating and installing a Plugin for mobile Safari on ios4 devices

I have created a simple web plug-in to write data to file system. 我创建了一个简单的Web插件,将数据写入文件系统。 This works as expected on a mac Safari. 在Mac Safari上可以正常工作。 Here i have to manually place the plug-in on to the /Library/Internet Plug-Ins folder. 在这里,我必须手动将插件放置到/ Library / Internet Plug-Ins文件夹中。 My question is there a way to find if the plug-in is not present through JavaScript and if it is not then download and install the same. 我的问题是有一种方法可以找到该插件是否不通过JavaScript出现,如果不存在,则可以下载并安装该插件。 I also would like to know if the same can be done on mobile Safari running on ios4 devices? 我还想知道是否可以在ios4设备上运行的移动Safari上执行相同的操作?

Obviously you can not load Plugins of any kind in Safari on the iOS device. 显然,您无法在iOS设备上的Safari中加载任何类型的插件。 This is the main reason Flash does not exist on iOS. 这是iOS上不存在Flash的主要原因。

On the Mac you can do that. 在Mac上,您可以执行此操作。 But you need to create the plugin in C++ and for each platform independently. 但是您需要分别使用C ++和每个平台创建插件。

If you code the plugin correctly, it should be possible to "detect" it using JavaScript. 如果您正确编码了插件,则应该可以使用JavaScript“检测”它。 I highly doubt you can download it automatically, though. 我非常怀疑您是否可以自动下载它。 This would pose a very large security hole for every user. 这将为每个用户带来一个非常大的安全漏洞。

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

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