我需要知道是否可以使用Javascript读取智能卡证书.NodeJS可以解决问题.我探索并发现了NodeJS插件
xml-crypto
Run Code Online (Sandbox Code Playgroud)
对于数字签名xml,它工作得很好,但我写了正确的路径到我的光盘上的certificate.pem(它不在智能卡上).那么如何使用智能卡呢?
我被困在使用Cordova 插件 InAppBrowser 中
我的项目设置是 Angular 13 + Capacitor for android build,它工作正常,直到我尝试使用 InAppBrowser 插件。
我按照上面链接上的说明进行操作,但没有成功。
import { InAppBrowser } from '@awesome-cordova-plugins/in-app-browser/ngx';
...
constructor(
private fb: FormBuilder,
private iab: InAppBrowser
) {}
...
redirectMe = async () => {
console.log('redirect init');
const options: any = {
location: 'no',
clearcache: 'yes',
zoom: 'yes',
toolbar: 'yes',
closebuttoncaption: 'close'
};
console.log('redirect me triggered');
const browser = this.iab.create(
'https://somelink.com',
'_blank',
options
);
console.log('opened');
console.log('browser=>');
browser.on('loadstop').subscribe(() => { ... do something});
Run Code Online (Sandbox Code Playgroud)
我在运行时收到此错误:
错误 NullInjectorError:R3InjectorError(HomeModule)[InAppBrowser -> …