mobile-chrome-apps using cordova plugin

隐身守侯 提交于 2019-12-24 03:53:48

问题


I'm trying to get a polyfill for the issue with input[type=file] on Android 4.4.

chrome.fileSystem.chooseEntry shows the dialog but not the callback.

Anyhow this look(s)/(ed) promising:

https://github.com/cdibened/filechooser

but using the "cca plugin add..." instead of "cordova plugin add..." fails.

Other posts recommend doing everything through the cca toolchain.

What is the best approach?

What are other developers doing about the issue with input[type=file] on Android 4.4?

Thanks, Nic


回答1:


cca plugin add forwards off to cordova plugin add, making sure that the paths, versions, etc are correct, so you were right to use that.

The reason this plugin fails to install is because it is bundling the android-support-v4.jar library, which we already also install.

The resolution is simple: all plugins should not bundle external libraries, and should instead use a plugin.xml <dependency> tag on a single common plugin to add these external libraries.

We provide a bunch of these plugins for Google libraries, including for android-support-v4.

I've filed an issue for us to better handle this error, but the resolution is to reach out to that plugin author and make the change, or fork fix and issue a pull request.

If you are not able to do this, let me know and I will add it to our backlog!



来源:https://stackoverflow.com/questions/23056859/mobile-chrome-apps-using-cordova-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!