()
| 38 | } |
| 39 | |
| 40 | public check(): Promise<any> { |
| 41 | if (!this.platform.isCordova) return undefined; |
| 42 | if (!this.app.isLockModalOpen && this.platform.isAndroid) |
| 43 | this.app.skipLockModal = true; |
| 44 | return this.faio |
| 45 | .show({ |
| 46 | clientId: this.app.info.name |
| 47 | }) |
| 48 | .then((result: any) => { |
| 49 | this.logger.debug('Biometric: ', result); |
| 50 | }) |
| 51 | .catch((e: any) => { |
| 52 | this.logger.error('Biometric: ' + e.message, e.code); |
| 53 | throw e; |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | private isNeeded(wallet): string { |
| 58 | let config = this.config.get(); |
no test coverage detected