具有智能卡集成功能的phonegap应用

橙色薄荷

我有一个想使用Precise Biometric的Smart Card Tactivo读卡器保护的phonegap / cordova应用程序。我对智能卡集成非常陌生,Precise Biometrics似乎没有非常有用的文档。但是我发现我需要为phonegap创建自己的插件才能使用读卡器。

我的问题是:是否已经为此创建了一个插件,或者有人可以张贴我需要的插件代码示例吗?

到目前为止,我的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文件中没有代码

我只想指出正确的方向。谢谢。

罗普·哈库琳(Roope Hakulinen)

不,我找不到适合您的插件,并且很可能不存在一个插件,仅仅是因为智能卡Tactivos不太常见。

也就是说,唯一的选择是创建自己的插件。首先,您需要按照其网站说明从“精确生物识别”中获取“精确移动工具包”的详细信息

请联系您当地的Precise Biometrics代表或发送电子邮件至:[email protected],以请求免费工具包。

获得工具包后,您只需按照Cordova文档中所述将实现包装为Cordova插件即可:通常是关于插件尤其是关于Android插件开发另请参阅支持Android的其他插件。最常用的例子是Device插件(尤其是Android实现)和File插件(及其Android实现)。从那里开始,前两个比较简单,并且很好地展示了如何实现可调用Java函数的基本结构,而后一个则提供了更加复杂的结构和更多示例。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章