我有一个使用Phonegap/Cordova开发的应用程序,我希望使用Precise Biometric公司的Smart Card Tactivo读卡器来保护它。我对智能卡集成非常陌生,而Precise Biometrics似乎没有提供详细的文档资料。然而,我发现需要创建自己的phonegap插件才能使用读卡器。
我的问题是:是否已经有为此创建的插件,或者有人可以发布我需要的插件代码示例?
到目前为止,在我的plugin.xml文件中,我拥有下面的代码:
我的问题是:是否已经有为此创建的插件,或者有人可以发布我需要的插件代码示例?
到目前为止,在我的plugin.xml文件中,我拥有下面的代码:
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-device"
version="1.0.0-dev">
<name>smartCard</name>
<description>Cordova smartCard Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,smartCard</keywords>
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git</repo>
<issue>https://issues.apache.org/jira/browse/CB/component/12320648</issue>
<js-module src="www/smartCard.js" name="smartCard">
<clobbers target="smartCard" />
</js-module>
...
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="smartCard" >
<param name="android-package" value="org.apache.cordova.smartCard.SMARDCARD"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="com.precisebiometrics.android.mtk.manager.permission.BIOMETRIC_DATA" />
</config-file>
<source-file src="src/android/smartCard.java" target-dir="src/org/apache/cordova/smartCard" />
<js-module src="www/smartCardHandle.js" name="smartCardHandle">
<clobbers target="smartCardrHandle" />
</js-module>
</platform>
我希望能得到指引,关于www/*.js文件中没有代码的问题。谢谢。