Tôi có một ứng dụng phonegap/cordova mà tôi muốn bảo mật với đầu đọc thẻ Tactivo thông minh của Biise Biometric. Tôi rất mới để tích hợp thẻ thông minh, và sinh trắc học chính xác dường như không có một tài liệu rất thông tin. Tuy nhiên tôi đã tìm thấy rằng tôi cần phải tạo ra plugin của riêng tôi cho phonegap để sử dụng đầu đọc thẻ.ứng dụng phonegap với tích hợp Thẻ thông minh
Câu hỏi của tôi là: có plugin nào đã được tạo cho mục đích này hay có thể ai đó đăng ví dụ về mã plugin mà tôi cần?
Cho đến nay tôi có mã này trong tập tin plugin.xml tôi:
<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>
Và không có mã trong www/* js file
Tôi chỉ muốn được chỉ trong đúng hướng.. Cảm ơn.
Nếu bạn đang đi xuống bỏ phiếu xin vui lòng có lịch sự phổ biến và giải thích lý do tại sao. Làm thế nào tôi sẽ biết "tốt hơn" nếu bạn không ... – hunterInt
Tôi cho rằng downvote có thể đến từ việc thiếu nỗ lực của riêng mình để giải quyết vấn đề này khi các hướng dẫn được ra khỏi đó để đọc và bạn chưa thực sự cố gắng để viết phần plugin. –